Forum Moderators: open

Message Too Old, No Replies

Condition with onLoad()

         

paratge

12:41 pm on Apr 17, 2007 (gmt 0)

10+ Year Member



Hi, how is it possible to create a condition with OnLoad() in an iframe.

I just want to know is th page is completely loaded in the iframe.

Thanks in advance

Dabrowski

1:00 pm on Apr 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not that I know of, but if the IFRAME is on the same domain as the parent frame then you could use a callback style function where the IFRAME's onload would notify the parent window.

paratge

1:13 pm on Apr 17, 2007 (gmt 0)

10+ Year Member



the page loaded in my iframe is from another domain, and url i send to call the page is different than source url of the page cause a cgi script returns an encoded url with a Hmac key i must read to create a temporary user account.

Dabrowski

1:54 pm on Apr 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Then unfortnately I don't think it can be done. The IFRAME does have an onLoad that does fire when the content is loaded, BUT as the domain in the IFRAME is different you get 'Permission denied' when you try to set the onLoad on the IFRAME.

I wrote a little test page, and it works fine if the IFRAME is on the same domain.

I hope someone can prove me wrong.