How do I ensure AJAX still works after content moved from iFrame through DOM manipulation

Posted by KcYxA on Stack Overflow See other posts from Stack Overflow or by KcYxA
Published on 2010-05-15T04:21:26Z Indexed on 2010/05/15 4:24 UTC
Read the original article Hit count: 394

Filed under:
|
|

After submitting an iFrame, content with AJAX enabled functions is returned and everything works.

Once I move the content out from the iFrame to the main page through DOM manipulation and remove the iFrame, AJAX stops working.

How can I make it work?

I grab the body content of the iFrame and move it to an outside element through .innerHTML

© Stack Overflow or respective owner

Related posts about iframe

Related posts about AJAX