RawSushi's Tech Journal
My online tech scrapbook where I keep my notes in case I need to look them up later
Friday, June 1, 2012
Allowing Javascript to Call Each Other Across iFrames
This only works if the pages in the iframes are all hosted on subdomains on the same root domain.
Run this Javascript line in all the iframes:
<script type="text/javascript">
document.domain="yourdomain.com";
</script>
References:
http://www.devguru.com/technologies/ecma
script/quickref/doc_domain.html
http://jszen.blogspot.com/2005/03/cross-d
omain-security-woes.html
http://www.w3schools.com/jsref/prop_doc_
domain.asp
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment