View Full Version : Passing form data to an iframe
04-05-2003, 02: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.
04-05-2003, 06:01 AM
there are many ways, give it an id
<iframe ... id="id"></iframe>
document.getElementById("id").inputname.value = document.inputname.value
<iframe ... name="ifrm"></iframe>
parent.frames["ifrm"].document.inputname.value = document.inputname.value;
that assumes the name of two input names.
04-05-2003, 11:31 PM
lol i didnt know it was that simple, ill give that a shot.
04-06-2003, 07:27 AM
wat if i want to get data from the main page to display in my iframe?
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.