Reading parent variable into iframe
Posted: Fri Dec 12, 2014 12:09 pm
I am currently working on a program that will require an iframe to read data from the display screen when the screen is loaded. So far I have had no luck reading in anything to the iframe. Here is a section of my javascript code for the iframe:
<p id="Var1"></p>
<p id="Var2"></p>
<script type="text/javascript">
document.getElementById("Var1").innerHTML = txtVar1;
document.getElementById("Var2").innerHTML = parent.document.getElementById(window.txtVar1);
</script>
These attempts that I have made in the javascript have not worked for me.
Is this even possible with using the profound iframe widget or am I not coding this correctly?
Any information you could give me would be great
Thanks
<p id="Var1"></p>
<p id="Var2"></p>
<script type="text/javascript">
document.getElementById("Var1").innerHTML = txtVar1;
document.getElementById("Var2").innerHTML = parent.document.getElementById(window.txtVar1);
</script>
These attempts that I have made in the javascript have not worked for me.
Is this even possible with using the profound iframe widget or am I not coding this correctly?
Any information you could give me would be great
Thanks