Abril Posted May 29, 2014 Share Posted May 29, 2014 I want to pass button action at the parent page, this button is inside the iframe. Quote Link to comment Share on other sites More sharing options...
QuickOldCar Posted May 29, 2014 Share Posted May 29, 2014 Follow this and can work http://forums.asp.net/t/1546237.aspx?Access+Buttons+from+ParentPage+and+ChildPage+IFRAME+ I tested it using parent.php and child.php as the script names and href source Quote Link to comment Share on other sites More sharing options...
.josh Posted May 30, 2014 Share Posted May 30, 2014 That only works if the parent page and child page are on the same (full) domain. If they are not, then the short answer is you cannot do it*, as this is considered cross-site scripting (google same origin policy). *The longer answer is there are ways around it, along the same principle as FB API but it is kinda complex and involved, though it's somewhat easier depending on what you're coding for. For example there is an html5 method that's a bit less convoluted. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.