Advertisement
Advertisement
| 07.07.2008 at 04:06PM PDT, ID: 23545066 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: |
<html>
<head>
<script type="text/javascript" language="javascript" src="demo.js"></script>
<script type="text/javascript">
window.onload = containerPage();
</script>
<style>
p {width:600px;font-size:14pt;}
</style>
<title>Shared JS Variable Demo | Container Page</title>
</head>
<body>
<div id="container" style="position:absolute;top:100px;left:300px;">
<div id="message">
<p>For some reason, the live page where I'm using this function fires the
iFramePage() function before the page containerPage() function fires, so
ideally the solution would be bi-directional, meaning I could set the sharedVar
from either page if need be.</p>
<p>My solution requires that I use the iFrame's sub-page to set the variable.</p>
</div>
<div id="content"></div>
<iframe id="theIframe" name="theIframe" src="subpage.html" onLoad="iFramePage();"
width="0" height="0" scrolling="no" frameborder="0" marginheight="0" marginwidth="0" allowTransparency="true"></iframe>
</div>
</body>
</html>
|