[jQuery] Re: accessing iframe content

2009-07-26 Thread helpfulMike
Hi, I had a similar problem a couple of days ago and this worked for me... iframe = $('iframe.CLASS_NAME')[0]; hope it helps, Mike On Jul 26, 2:39 am, kknaru isai...@gmail.com wrote: hi there, i just started working with iframes and i'm stucked :D so...i have this code

[jQuery] Re: accessing iframe content

2009-07-26 Thread helpfulMike
Hi, Try this. It works for me. iframe = $('iframe.CLASS_NAME')[0]; I am accessing iframe content via class and works fine. Should work with id too. Hope its what you need, regards Mike

[jQuery] Re: accessing iframe content

2009-07-26 Thread mkmanning
Is your iframe on the same domain? If not, you can't do this. On Jul 25, 10:39 am, kknaru isai...@gmail.com wrote: hi there, i just started working with iframes and i'm stucked :D so...i have this code inside a html file: iframe id=myframe          ptext/p /iframe what i'm trying to do

[jQuery] Re: accessing iframe content

2009-07-26 Thread brian
try this: iframe.contents().find('body p').html() On Sun, Jul 26, 2009 at 3:39 PM, mkmanningmichaell...@gmail.com wrote: Is your iframe on the same domain? If not, you can't do this. On Jul 25, 10:39 am, kknaru isai...@gmail.com wrote: hi there, i just started working with iframes and i'm

[jQuery] Re: accessing iframe content

2009-07-26 Thread kknaru
after many tries i managed to solve the problem with this code: $(#myframe).load(function(){ $(this).contents().find(p).text(); });