Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Aug 2003
    Posts
    82
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to submit a scond page?

    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?

    Thanks

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #3
    New Coder
    Join Date
    Aug 2003
    Posts
    82
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    document.getElementById("id of your iframe').document.forms["name of the form inside the iframe"]
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #5
    New Coder
    Join Date
    Aug 2003
    Posts
    82
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks roy


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •