ÿþ<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Cross Domain Demo inner Frame Proxy</title> <meta http-equiv="Pragma" content="no-cache"/> <script type="text/javascript"> // Ensure all iFrames are working in a common domain document.domain = "www.willerby.com"; </script> </head> <body> <script type="text/javascript"> // Forward message to the "real" iFrame that should be // hosted somewhere in the parent page function ForwardMessage() { var message = document.location.hash; if (message.length > 0) { message = message.substr(1); parent.frames["hostFrame"].OnMessageFromParent(message); } } // Hook up the Forward Message dependent on browser. FF will only raise the // resize event on the window / body. if (window.addEventListener){ window.addEventListener('resize', ForwardMessage, false); } else if (document.body.attachEvent){ window.onresize = ForwardMessage; } // Ensure ForwardMessage is called once after the page is loaded so that // any message sent during page load is eventually passsed on. Particularly // needed if you are looking at resizing content. setTimeout('ForwardMessage();', 0); </script> </body> </html>