display loading gif on multi-part form submit
Posted
by mandril
on Stack Overflow
See other posts from Stack Overflow
or by mandril
Published on 2010-04-26T16:32:13Z
Indexed on
2010/04/26
16:53 UTC
Read the original article
Hit count: 234
Im trying to display a loading gif before submitting a multipart-form (file upload), this is my code.. but the image is not displaying.. if i remove the submit() it displays, so.. is not a path or syntax problem.
$('#btnSubmit').click(function() {
document.getElementById('loader').innerHTML = "<img src='<?= url::base() ?>themes/img/loading.gif' border='0' />";
$('#uploadform').submit();
});
© Stack Overflow or respective owner