I have a form to upload a file.The <html>
is as follows:
<div id="divModalPopup" class="ui-dialog-content" style="height: 139px; width: 268px;">
<form method="post" action="upload.php" target="uploadframe" enctype="multipart/form-data">
Please choose a file to upload [only zip with shape files and no folders]:
<input type="file" name="uploadFile"/><br/><input type="submit" value="Upload"/>
</form>
<iframe style="display: none;" onload="uploadStatus();" id="uploadframe" name="uploadframe"/>
</div>
And on clicking upload, i send a post request to a php file,whose response is shown on the iframe. The javascript function for the same :
function uploadStatus(){
var resp = document.getElementById('uploadframe').contentDocument.body.innerHTML;
if ("" != resp){
jQuery("#divModalPopup").html(resp);
}
}
The issue I am facing here is that, even after i get the response(firebug shows the correct response), <firefox>
shows a waiting cursor and loading.. icon in the tab.
Any idea as to why this is happening??
There's nothing but an echo statement in the php file.
Also, this doesn't happen on other browsers like Chrome and safari. A tcp packet capture shows that the transaction is complete.