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
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
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
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
after many tries i managed to solve the problem with this code:
$(#myframe).load(function(){
$(this).contents().find(p).text();
});
5 matches
Mail list logo