XUpload - Start Upload via JavaScript

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

Start Upload via JavaScript

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

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

Thanks in advance,

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

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

Try this:

Code: Select all


where uploadForm is name of form.

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.

Return to “XUpload”

Who is online

Users browsing this forum: No registered users and 0 guests