i wasnt really sure where to post this since it's a combination of Javascript and PHP. i'm trying to make a fileuploader without reloading the page.
my structure: at the moment, i can upload files without reloading the page. i set the target of the upload form to a hidden iframe and loaded upload.php in it.
my problem: when the upload starts, i make a div 'loading' visible. to hide it again i trigger an event when the upload is done. or at least that was the idea. i dont know how to trigger it.
Expand|Select|Wrap|Line Numbers
- <iframe id="upload_target" name="upload_target" src="#" style="width:0;height:0;border:0px solid #fff; display:none;">
- <script language="javascript" type="text/javascript">
- top.window.stopUpload();
- </script>
- </iframe>