so lets imagine i have some iframe inside my html page:
<iframe width="750" scrolling="no" height="255" src="http://
www.some_url.com/some_page.htm"></iframe>
how can i work with the loaded content ?
i was trying something like:
aa = $('iframe').html();
to clarify this: i want to add onClick event to some IMG which is
inside DIV and this DIV inside this url http://www.some_url.com/some_page.htm which is loaded in IFRAME...
how can i add some onClick event to some image which is loaded in
iframe ?
> so lets imagine i have some iframe inside my html page:
> <iframe width="750" scrolling="no" height="255" src="http://www.some_url.com/some_page.htm"></iframe>
> how can i work with the loaded content ?
> i was trying something like:
> aa = $('iframe').html();
> to clarify this: i want to add onClick event to some IMG which is
> inside DIV and this DIV inside this urlhttp://www.some_url.com/some_page.htm > which is loaded in IFRAME...
> how can i add some onClick event to some image which is loaded in
> iframe ?
----- Original Message ----- From: "EugeneS" <SEuge...@gmail.com> To: "jQuery (English)" <jquery-en@googlegroups.com> Sent: Thursday, March 13, 2008 12:47 AM Subject: [jQuery] how to address to iframe content with jquery ?
> Hello,
> so lets imagine i have some iframe inside my html page: > <iframe width="750" scrolling="no" height="255" src="http:// > www.some_url.com/some_page.htm"></iframe>
> how can i work with the loaded content ?
> i was trying something like: > aa = $('iframe').html();
> to clarify this: i want to add onClick event to some IMG which is > inside DIV and this DIV inside this url > http://www.some_url.com/some_page.htm > which is loaded in IFRAME...
> how can i add some onClick event to some image which is loaded in > iframe ?
> Example:
> var oBody = $("#MyIFrame").contents().find("body");
> oBody.append('<h1 id="hello">Hello world</h1>');
> $('#hello', oBody).bind('click', function () { alert('Why, hello there!')});
> ----- Original Message -----
> From: "EugeneS" <SEuge...@gmail.com>
> To: "jQuery (English)" <jquery-en@googlegroups.com>
> Sent: Thursday, March 13, 2008 12:47 AM
> Subject: [jQuery] how to address to iframe content with jquery ?
> > Hello,
> > so lets imagine i have some iframe inside my html page:
> > <iframe width="750" scrolling="no" height="255" src="http://
> >www.some_url.com/some_page.htm"></iframe>
> > how can i work with the loaded content ?
> > i was trying something like:
> > aa = $('iframe').html();
> > to clarify this: i want to add onClick event to some IMG which is
> > inside DIV and this DIV inside this url
> >http://www.some_url.com/some_page.htm > > which is loaded in IFRAME...
> > how can i add some onClick event to some image which is loaded in
> > iframe ?
> > ----- Original Message -----
> > From: "EugeneS" <SEuge...@gmail.com>
> > To: "jQuery (English)" <jquery-en@googlegroups.com>
> > Sent: Thursday, March 13, 2008 12:47 AM
> > Subject: [jQuery] how to address to iframe content with jquery ?
> > > Hello,
> > > so lets imagine i have some iframe inside my html page:
> > > <iframe width="750" scrolling="no" height="255" src="http://
> > >www.some_url.com/some_page.htm"></iframe>
> > > how can i work with the loaded content ?
> > > i was trying something like:
> > > aa = $('iframe').html();
> > > to clarify this: i want to add onClick event to some IMG which is
> > > inside DIV and this DIV inside this url
> > >http://www.some_url.com/some_page.htm > > > which is loaded in IFRAME...
> > > how can i add some onClick event to some image which is loaded in
> > > iframe ?
> > ----- Original Message -----
> > From: "EugeneS" <SEuge...@gmail.com>
> > To: "jQuery (English)" <jquery-en@googlegroups.com>
> > Sent: Thursday, March 13, 2008 12:47 AM
> > Subject: [jQuery] how to address to iframe content with jquery ?
> > > Hello,
> > > so lets imagine i have some iframe inside my html page:
> > > <iframe width="750" scrolling="no" height="255" src="http://
> > >www.some_url.com/some_page.htm"></iframe>
> > > how can i work with the loaded content ?
> > > i was trying something like:
> > > aa = $('iframe').html();
> > > to clarify this: i want to add onClick event to some IMG which is
> > > inside DIV and this DIV inside this url
> > >http://www.some_url.com/some_page.htm > > > which is loaded in IFRAME...
> > > how can i add some onClick event to some image which is loaded in
> > > iframe ?
----- Original Message ----- From: "simo" <simon.geor...@gmail.com> To: "jQuery (English)" <jquery-en@googlegroups.com> Sent: Thursday, March 13, 2008 12:43 PM Subject: [jQuery] Re: how to address to iframe content with jquery ?
> Hi,
> adapting your script I'm trying to access the content between my > Iframe <body> tag but i'm not able to ...
> > > ----- Original Message -----
> > > From: "EugeneS" <SEuge...@gmail.com>
> > > To: "jQuery (English)" <jquery-en@googlegroups.com>
> > > Sent: Thursday, March 13, 2008 12:47 AM
> > > Subject: [jQuery] how to address to iframe content with jquery ?
> > > > Hello,
> > > > so lets imagine i have some iframe inside my html page:
> > > > <iframe width="750" scrolling="no" height="255" src="http://
> > > >www.some_url.com/some_page.htm"></iframe>
> > > > how can i work with the loaded content ?
> > > > i was trying something like:
> > > > aa = $('iframe').html();
> > > > to clarify this: i want to add onClick event to some IMG which is
> > > > inside DIV and this DIV inside this url
> > > >http://www.some_url.com/some_page.htm > > > > which is loaded in IFRAME...
> > > > how can i add some onClick event to some image which is loaded in
> > > > iframe ?