XUpload - Start Upload via JavaScript

Message
Author
rocka84
Posts: 2
Joined: Apr 08, 2009 7:08 am

Start Upload via JavaScript

#1 Postby rocka84 » Apr 08, 2009 7:20 am

Hi!
How can I start the upload via JavaScript without submitting the page?
Calling 'StartUpload(uploadForm)' doesn't seem to work.

Thanks in advance,
Fabian

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Apr 08, 2009 12:40 pm

Try this:

Code: Select all

StartUpload(document.uploadForm);
where uploadForm is name of form.

rocka84
Posts: 2
Joined: Apr 08, 2009 7:08 am

#3 Postby rocka84 » Apr 08, 2009 10:36 pm

That's what I do... or to be precise I added

Code: Select all

if (typeof f1=="undefined") f1=document.F1Upload;
as first line to StartUpload() and call it with no argument.
The progress bar comes up but then nothing happens.

Edit: I just confirmed this on the Demos on your Page. I called StartUpload(document.F1Upload); using Firebug's Console.