now, WHAT IF your iframe-contained child page is a page residing on another server?
here's what you can do:
1. know the domain your parent frame holder is using (ex. www.xxx.ph)
2. point a subdomain to the server hosting your child page (ex. child.xxx.ph)
3. set domain in javascript for both parent and child page
<script>document.domain="xxx.ph"</script>
now you can call your javascript function in your parent page from the iframe-contained child residing on another server!
;)
check out http://www.cybersoft.ph/testIFrame/iframeParent.html
No comments:
Post a Comment