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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    349
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Layers, and same form dividing into segments....dhtml

    okay, sorry for so many questions, but I have a project and I want to know 'certain' things before I embark on the architecture.

    can you have one form, and have different parts of the form in diff. div/span tags..and layer one over the other, while filling in the 'same' form...and then submit it..

    are there any issues of form data being lost when you stack layers or somesuch?

    basically, will data that is entered/selected still hold their values once a new layer is placed 'over' the current layer or when you remove a layer...?

    thanks

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The answer depends on which browsers you're supporting. If it's just modern browsers then the answer is that you can divide the form up between many different layers, hide the layers, move them around and all will be well and submitted as long as all the layers are properly placed between the <form> and the </form> tags.

    However, if you add Netscape 4 into the mix the whole thing falls apart since each "layer" in NS 4 is a wholly seperate document which would require it's own <form></form> pair for any form fields contained within and to get those items to submit you'll need to make sure the values they contain are copied from the layer into hidden values in a master form that is actually submitted. If you wish to move the layers around as well as just show/hide them you'll also find that NS 4 doesn't like to see those form tags moving and may not work at all.

    Beyond NS 4 though it's entirely possible but you do need to keep in mind that your audience will need to have JS enabled or you'll need some clever styles to handle the cases where JS isn't enabled too.


  •  

    Posting Permissions

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