| Author |
Topic Search Topic Options
|
Gary
Senior Member
Joined: 20 March 2002
Location: United Kingdom
Status: Offline
Points: 326
|
Post Options
Thanks(0)
Quote Reply
Topic: Controlling Complex Web Form Posted: 30 June 2003 at 4:32am |
I have a rather large progressive web form. That is to say that as the form progresses in status, more of the form becomes 'available'. I want to be able to control the form fields depending on the status as follows:
Status: <SELECT> list with <OPTION>'s such as Stage1, Stage2, Stage3 and Stage4 (always available) If Stage1 is selected, then only the first part of the form is available - maybe form items 10-20. The rest of the form should be visible, but readonly) x days later, the status is then changed (by user) to Stage2 at which point both the first (10-20 items) and second (21-32 items) are available. Again, the rest of the form visible, but readonly. This then continues right through all the status levels.
I think that I could figure this out, but just wanted some input into how YOU would go about this in the easiest, most efficient way. Also, should I control the form with client-side Javascript or server-side asp ???
Any thoughts, ideas, recommodations would be much appreciated. Sample script or links would be even better.
|
 |
ljamal
Mod Builder Group
Joined: 16 April 2003
Status: Offline
Points: 888
|
Post Options
Thanks(0)
Quote Reply
Posted: 30 June 2003 at 7:42am |
|
Use ASP and use the status to determine which parts are the form are active and store the data server side in a database.
|
|
|
 |
Gary
Senior Member
Joined: 20 March 2002
Location: United Kingdom
Status: Offline
Points: 326
|
Post Options
Thanks(0)
Quote Reply
Posted: 30 June 2003 at 7:51am |
That is one possibility, but if the user changes the status, the page will need to be reloaded. Before that happens, I will need to write any changes to the database (does the user want to commit changes???).
Therefore, maybe Javascript would be better???
What I am after from this thread is a discussion on what you guys would do. Also, the pro's and con's of the various available options.
|
 |
ljamal
Mod Builder Group
Joined: 16 April 2003
Status: Offline
Points: 888
|
Post Options
Thanks(0)
Quote Reply
Posted: 30 June 2003 at 7:58am |
|
The user could disable Javascript (and some do to avoid pop ups) and then your system fails completely. With a multiple step process, you shouldn't give the user any more control than necessary. They should step through the process and (maybe be able to step backwards) but after each step the data should be submitted back to the server. Rather than having status a a select box, I would include the status as button and disable the buttong if they are not applicable.
|
|
|
 |
Bluefrog
Senior Member
Joined: 23 October 2002
Location: Korea, South
Status: Offline
Points: 1701
|
Post Options
Thanks(0)
Quote Reply
Posted: 30 June 2003 at 8:09am |
I'd go with server-side, but you can do a hidden div with a message saying that the user needs to submit to commit the changes. Then change it with javascript, unhide the div, let the user commit it with a submit (or button that is javascripted), and then do everthing permanently on the back side
|
 |
Gary
Senior Member
Joined: 20 March 2002
Location: United Kingdom
Status: Offline
Points: 326
|
Post Options
Thanks(0)
Quote Reply
Posted: 30 June 2003 at 8:15am |
I forgot to mention, this is for an intranet web application which is going to be used by no more than 10 people.
The fact that i0t is internal means that we do not have to worry about JS being disabled.
Does that change your view on issue ???
Thx
|
 |
Bunce
Senior Member
Joined: 10 April 2002
Location: Australia
Status: Offline
Points: 846
|
Post Options
Thanks(0)
Quote Reply
Posted: 30 June 2003 at 8:49am |
My vote is for server side. Simply break the steps into separate pages and show what is applicable on that page. Store the current status in a database or file somewhere.
A rule of thumb I try to remember is to not cause the user to scroll down more than 1 page (for average resolution) for any pages on the site. There are exceptions of course, but this might help in your case.
Cheers, Andrew
|
|
There have been many, many posts made throughout the world...
This was one of them.
|
 |
MorningZ
Senior Member
Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
|
Post Options
Thanks(0)
Quote Reply
Posted: 30 June 2003 at 9:00am |
another vote for server-side, not only will it be a whole heck of a lot of coding in javascript (yick!), but it'll run slow on the browser checking that many fields
i don't use the reason "they might have javascript disabled".. if someone has that going on, half the sites on the net wouldn't work, lol
|
|
Contribute to the working anarchy we fondly call the Internet
|
 |