469,325 Members | 1,651 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,325 developers. It's quick & easy.

Accessing iframe

Alright, this is very strange. I call a javascript function in my page
load that accesses an iframe and I get an error. But if I wait till the
page completely loads and access the iframe through a click event
everything works fine.

I'm trying to set some of the iframe's properties on page load before
the page gets rendered. Can I do this? I even tried to acess it in the
Pre Render event and that does not work either. Thanks for help

Nov 19 '05 #1
3 1026
if the iFrame isnt loaded, which happens AFTER the page is sent to the
client, you arent going to really get to access it...

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"BillGatesFan" <kl******@hotmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Alright, this is very strange. I call a javascript function in my page
load that accesses an iframe and I get an error. But if I wait till the
page completely loads and access the iframe through a click event
everything works fine.

I'm trying to set some of the iframe's properties on page load before
the page gets rendered. Can I do this? I even tried to acess it in the
Pre Render event and that does not work either. Thanks for help

Nov 19 '05 #2
Is there a workaround for this?

Nov 19 '05 #3
you could either do an onLoad for the contents of the IFrame,

or poll the Iframe to see if its readyStatus us 4 (loaded)

You would want to do this in a thread so that you do not lock up the UI

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Frédéric Mayot | last post: by
2 posts views Thread by Richie | last post: by
4 posts views Thread by Paul Brant | last post: by
2 posts views Thread by pgnPoster | last post: by
14 posts views Thread by Aaron Gray | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.