If I am trying to do $($('#iframeid').clone()).appendTo('#SomeDiv') then once again an http request is sent and the newly appended iframe is now containing a fresh page rather the page with existing data. Any solution? I want to copy the iframe into a specific div structure so that jquery splitter plugin can understand that .
If I am trying to do $($(‘#iframeid’).clone()).appendTo(‘#SomeDiv’) then once again an http request is
Share
AFAIK, the content inside the
iframedoesn’t get included when the browsers builds the DOM. So,clonejust clones theiframewith its attributes but without the content inside. It is like copy-pasting the<iframe src="SOMEURL">. So, it sends yet anotherHTTPrequest for the requested resource.