|
No! If he wants to UPload a file, it's on the client, so the client is the right place to find out the size.
See my answer to OP for more info.
Peter
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
The JavaScript security model does not allow access to the client's file system, so there is no direct way. You can use either an ActiveX object or a Java applet . Either way, you'll need the user's permission. Google for "javascript file size" and you'll find some discussions of the problem.
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
|
... which just uses ActiveX
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
That's probably why Raja said "dirty way".
|
|
|
|
|
Hello !
i have a javascript Photo Scroller in my page.But the script take some time to load.and the place on the page is empty until the script is loaded.I want to put in that place a " ...loading message" or a animated gif picture , until the script is full loaded.
Can someone help me how to do that ?
Thank you in advance !
|
|
|
|
|
Helo,
please use readyState property of object.
Cu
|
|
|
|
|
Please could you be more precise , because i'm not very familiar with javascript.
My sricpt is :
----------------
---------------
-----------------
Where to put or to use readystate ? I have a animated gif "wait.gif" ? how to use this until the script is loaded ?
Thank You !
|
|
|
|
|
|
this is for whole page.
i have a script in specific position on the page.and on this position i want to display a "waiting message" until the script full loads.
|
|
|
|
|
Hi,
I have an application that uses frames.
I am calling a method in parent frame as below.(below method is in child frame)
function my MyChild()
{
var pth = window.location.href;
//http://localhost/Main/SUB/Child.aspx[^]
parent.frames["MainFrame"].MainMethod();
}
below is my function in parent Frame, and I am trying to open a new window but that is opening new page in child location
I am using below code , is ter any way so that I can track the URL it is trying to open.
function MainMethod()
{
var path=window.location.href; //below is the value
//http://localhost/Main/Parent.aspx[^]
window.open("Newpage.aspx");
//it is opening in http://localhost/Main/SUB/NewPage.aspx[^]
But I am expecting it will open in http://localhost/Main/NewPage.aspx[^]
}
Please suggest how Can i get the URl path it is trying to open, since window.location.href is giving differnt value.
Thanks,
|
|
|
|
|
Helo,
why you need var pth and var path ?
This vars are not in use !
Cu.
|
|
|
|
|
how to set focus again on drop down after pressing down key ?
|
|
|
|
|
If it is possible use method fireEvent().
If fireEvent() and or focus() are not possible, you can't create an event.
See Properties of parent of object.
|
|
|
|
|
Hi,
Can anybody help me converting this jquery code into mootools, please?
$("#" + '<%= txtInput.ClientID %>').parent().find(".textboxlist-bit-box-deletebutton").each(function(){
$(this).click();
});
Best wishes
|
|
|
|
|
Breaking it down;
Find ObjectA
Get Parent(Object B) of ObjectA
Get all Child objects (CollectionA) of ObjectB where they contain .textboxlist-bit-box-deletebutton
For each member (this) of CollectionA execute the click() method.
As for the exact syntax to MooTools, i'll pass, as haven't used it yet!
|
|
|
|
|
Hi All:
I trying to shorted out top 10 JavaScript Framework, Could you guys help me on that.
1. jQuery
2. MooTools
3. Protorype
4. Dojo Toolkit
5. Script.aculo
6. Qooxdoo
.
.
.
.
Thanks
Md. Marufuzzaman
I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
|
|
|
|
|
Three.js (Which i only found out about a few days ago!)
|
|
|
|
|
Thanks....
Thanks
Md. Marufuzzaman
I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
|
|
|
|
|
Could you tell me pls what is this three.js ? how it's work.
|
|
|
|
|
|
Nr 3. should be Prototype and not Protorype.
I wouldn't actually list Script.aculo.us as a framework of it's own right. The last time I saw and made us of it it was for effects and tightly knit with Prototype. Any pointers to the contrary are welcome.
Cheers!
|
|
|
|
|
|
guys;
what is deference between eval('somecode();'); and setTimeout('somecode();', 0); ?
thanks;
Help people,so poeple can help you.
|
|
|
|
|
Functionally, in this case, there is no real effective difference in their behaviour as far as the end result goes. Historically, eval has been a real resource hog because it would start up a new instance of the JS compiler (similarly, the same issue as setTimeout or setInterval ), but newer JS compilers have become much better at caching the eval compilation so this overhead isn't as bad.
|
|
|
|