View Full Version : how to submit a scond page?

09-10-2004, 05:59 PM
Hello, Iíve this page with an iframe in it, witch as another page. The parent one as header info and the child one has kind of a field list for the parent. I need to put all those fields on the server at the same time, but the submit method witch is on the parent page only sends itís from. How can I solve it?


Roy Sinclair
09-10-2004, 06:24 PM
You need a javascript on the main page which is run when the form is submitted which copied the values of the fields in the IMFRAME page into hidden form fields on the main page, that way they'll all be submitted together.

09-10-2004, 08:21 PM
thanks roy that's a very good solution. How do I address those fields from the main? I know how to access the parents from the child

Roy Sinclair
09-10-2004, 09:18 PM
document.getElementById("id of your iframe').document.forms["name of the form inside the iframe"]

09-10-2004, 09:26 PM
thanks roy