View Single Post
  #2 (permalink)  
Old 01-05-09, 09:24 AM
Yeroon's Avatar
Yeroon Yeroon is offline
Code Master
 
Join Date: Aug 2007
Location: Netherlands, Nijmegen
Posts: 850
Thanks: 2
Thanked 20 Times in 20 Posts
Hi,

If the page loaded in the Iframe is not on the same domain as the page holding the frame you will get the Access denied error. This is a security measure implemented by browers. You can't work around this (not that I know of).

So mainpage is: www.somedomain.com/index.html

Iframe src is: www.otherdomain.com/page.html

Then you can ask for url, call events etc.

You can only access properties and events of iframe pages if they are on the same domain.
__________________
Feel free to thank people if they help you by clicking thanks at a post.
=================================
Make it idiot proof and someone will make a better idiot.
=================================
Realise the impotence of proof reading everything you publish
Reply With Quote