Closing the iframe which was opened for "ajax uploading"

Posted by KPL on Stack Overflow See other posts from Stack Overflow or by KPL
Published on 2010-06-08T06:44:59Z Indexed on 2010/06/08 6:52 UTC
Read the original article Hit count: 237

Filed under:

Hello people,

http://www.atwebresults.com/php_ajax_image_upload/

I am using this script for so-called AJAX file upload but which is actually based on opening of iframe and then submitting form from it.

What my problem is, I am using this script in a form which will have some other fields too. So after uploading the image, when I click submit at the end of the form, the form is submitted to the file which was opened in iFrame.

As I am not an expert in JS, can you guys help me with this? I tried changing the action attribute and tried to completely remove the form too, but nothing helped.

© Stack Overflow or respective owner

Related posts about JavaScript