Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-09-2003, 09:50 PM   PM User | #1
BrightNail
Regular Coder

 
Join Date: Jun 2002
Posts: 349
Thanks: 2
Thanked 0 Times in 0 Posts
BrightNail is an unknown quantity at this point
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
BrightNail is offline   Reply With Quote
Old 04-10-2003, 02:55 PM   PM User | #2
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
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.
Roy Sinclair is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:47 AM.


Advertisement
Log in to turn off these ads.