View Full Version : Input fields inside an iframe?
elcaro2k
07-31-2003, 10:10 PM
I have an asp page with an iframe in it. Depending on which tab a user selects one of 4 pages can pop into the iframe. I need to get the user inputs on the iframe page out to the main page. Is there a way to reference these fields or do I have to pass them with cookies or what???
Thanks!
Danne
07-31-2003, 10:21 PM
Do you mean you want to load one of four pages in the iframe?
In that case:
self.frames[0].location.href="path/pageName1.asp";
cheesebagpipe
08-01-2003, 02:52 AM
From code running the parent window:
frames.frame_name.document.form_name.elements.element_name
From code running in the iframe:
parent.document.form_name.elements.element_name
elcaro2k
08-01-2003, 03:34 PM
cheesebagpipe,
Works perfect!!! Thank you very much!!!!
Ray:thumbsup:
elcaro2k
08-05-2003, 02:30 PM
cheesebagpipe,
When I reference checkboxes inside the iframe, they always return as "On". Do you know how I can fix this?
Thanks,
Ray
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.