Re: [jQuery] Get the real html from an iFrame

2009-11-12 Thread brian
Do either of these work? var html = parent.$('#indexIframe').contents().html(); var html = parent.$('#indexIframe').contents(); On Wed, Nov 11, 2009 at 9:49 AM, m.ugues wrote: > Hallo all. > > I have an iframe with an id. > I need to get the html content of this iframe. > > So from the iframe do

[jQuery] Get the real html from an iFrame

2009-11-11 Thread m.ugues
Hallo all. I have an iframe with an id. I need to get the html content of this iframe. So from the iframe doc read I tried like this var html = parent.$('#indexIframe').contents().find('html').html() In this way I get the content of the tag html of the iframe, so the head definition and the bod