View Full Version : Passing form data to an iframe
Antoniohawk
04-05-2003, 01:03 AM
I was wondering how i could pass the data entered into a from to and iframe. A simple example will suffice and i will try to edit it to my taste.
chrismiceli
04-05-2003, 05:01 AM
there are many ways, give it an id
<iframe ... id="id"></iframe>
<script>
document.getElementById("id").inputname.value = document.inputname.value
or frames
<iframe ... name="ifrm"></iframe>
parent.frames["ifrm"].document.inputname.value = document.inputname.value;
that assumes the name of two input names.
Antoniohawk
04-05-2003, 10:31 PM
lol i didnt know it was that simple, ill give that a shot.
Antoniohawk
04-06-2003, 06:27 AM
wat if i want to get data from the main page to display in my iframe?
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.