194
rated 0 times
[
199]
[
5]
/ answers: 1 / hits: 6193
/ 10 Years ago, sun, march 23, 2014, 12:00:00
I'm submitting multipart/form-data form as shown below.
Here form is targeted to a iframe.
<form id=upp method=post action=sample.jsp name=upform enctype=multipart/form-data target=my_iframe>
<input type=hidden name=todo value=upload>
<input id=haa type=file name=uploadfile size=50>
</form>
<iframe id=my name=my_iframe scrolling=no src=sample.jsp frameBorder=0>
</iframe>
And script I used is
$('#haa').change(function() {
$('#upp').submit();
});
Now how can I put loading image(.gif) while file is uploading to the iframe.
More From » jquery