in reply to CGI: which field has changed?
The http-protocol being essentially stateless, means that you will have to jump through a lot of hoops to "remember" what the previous state of the page was. Session-management springs to mind in that respect, but you can also keep the previous values of the menu-choices in some hidden fields.
Using hidden fields, it is easy to check which choices have changed and regenerate the page.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CGI: which field has changed?
by davies (Monsignor) on Feb 26, 2011 at 17:30 UTC | |
by davies (Monsignor) on Mar 14, 2011 at 11:04 UTC | |
by Anonymous Monk on Mar 14, 2011 at 11:45 UTC | |
by davies (Monsignor) on Mar 14, 2011 at 12:37 UTC |