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


After submitting an iframe, the content has been returned with AJAX enabled functions and everything works.

Delete content from IFrame via DOM manipulation and remove IFrame, AJAX stops working.

How can I work it out?

I move the contents of the content to IFrame and to the external element. WinnerHTML

It really depends on the AJAX implementation ...

By the time you grab dom nodes from iframe and give them your & lt; Body>, they are essentially new dom nodes

Why not just load the iframe into the main page of the main page and load it to execute the AJAX code? There?


Comments