Is it possible?
I tried moving it, but the contents of the iframe disappear.
I tried to get the contents of the iframe and put them in a new place, but all ofc handlers disappear.
Tried to do the same, but with the new jQuery 1.4.2 function, which also clones all events.
But this does not work :)
So I decided to ask for help.
How to transfer a damned iframe to another place in the document without losing its contents? ^ _ ^
thank
Added:
txtad_iframe = ad_container.find('iframe'); its_contents = txtad_iframe.contents(); its_body = its_contents.find("div:first").clone(true).insertAfter(cthis.find('#photos'));
Here I am trying to copy content into a new ad container. But that will not work. The context banner does not respond to the click event.
I tried moving ad_container to the container, but the contents of the iframe body disappear.
javascript dom iframe
Somebody May 21 '10 at 20:55 2010-05-21 20:55
source share