Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 67836

Detect upload status in javascript

$
0
0

Replies: 0

I am using wfu in an admin page to upload files. The page is generated on-the-fly and the upload is triggered in javascripts with the code fragment:

var elem = document.getElementById(“upload_1”);
if (typeof elem.onclick == “function”) { elem.onclick.apply(elem); }

on the input object (id=”upload_1″)that is the submit button. The upload works, but how do I test for failure in javascript?


Viewing all articles
Browse latest Browse all 67836

Trending Articles