I'm trying to pass variables to an iframe (src pointing to another server)
My Site ( http://test.com)
Code:
<script type="text/javascript">
var testvar="testing, testing . . .";
</script>
<iframe name="ifrOne" id="frame" style="background:#f7f7f7;" frameborder="0" height="100%" width="100%" src="http://ape.blah.com/ape-jsf/Demos/Shoutbox/demo.html"></iframe>
and you'll notice that the src points to http://ape.blah.com/...
My Other Site ( http://ape.blah.com)
Code:
<a href="#" onclick="alert(parent.testvar);return false;">Call Parent Variable</a>
Now if both files were on the same server, this works perfectly fine... but they're not on the same server and it doesn't work. Is there any way of getting this to work?
|