Hi gang. As with any other post, I am working on a project and have
gotten stuck. I am trying to obtain a variable value in the parent
webpage from an <iframe>. For instance:
Parent Page code
----------------
<html>
.... heading tags
<body>
<iframe name="testing" marginwidth="1" marginheight="1"
src="http://www.interneturl.com/webpage.php" height="160" width="300"
scrolling="no" border="0" frameborder="0"> </iframe>
</body>
</html>
When I try to access a variable value in that <iframe> it gives me the
error:
"uncaught exception: Permission denied to get property
Window.variablename". Obviously the <iframe> contains code from a
webpage that is not in the local domain (ie a local file). Would this
be causing the problem? If so, is there a way to get around this? I
have tried accessing the variable value from the ways listed below:
testing.variablename *seems to work on local files*
testing.document.variablename
parent.frames['testing'].variablename
parent.frames['testing'].document.variablename
frames['testing'].variablename
frames['testing'].document.variablename
Any help that can be given will be greatly appreciated... thanks in
advance.
Dave