The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Passing textfield values between an iframe and the parent page? HELP!
I am looking for a cross-browser way to pass a textfield value from an iframe into the parent page.
I have one page with an iframe in it - I use it to upload an image - the image's URL is put in a textfield in the iframe - I want onload to send it to the another textfield on the page that has the iframe. I can do this in IE using the following code - but it doesn't work in firefox. Any help would be amazing. Parent page textfield: HTML Code:
<input name="field5" size="60" value="" class="bginput" id='results' style="margin:8px;"/>
HTML Code:
<script Language=JavaScript> function xferContent(){isContent=document.getElementById('content').innerHTML;parent.frames.document.getElementById('results').value=isContent;} </script> HTML Code:
<Div class="style1" id='Content'>www.transferedlink.com</Div> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|