Accessing iframe

  • Thread starter Thread starter BillGatesFan
  • Start date Start date
B

BillGatesFan

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
 
if the iFrame isnt loaded, which happens AFTER the page is sent to the
client, you arent going to really get to access it...
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top