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
XUpload - Start Upload via JavaScript
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
Try this:
where uploadForm is name of form.
Code: Select all
StartUpload(document.uploadForm);
That's what I do... or to be precise I added
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.
Code: Select all
if (typeof f1=="undefined") f1=document.F1Upload;
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.