davies has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to design a CGI application. The plan is to have three popup menus and a text area. I don't generate the text area until an item has been selected from the lowest menu. I don't generate the lowest menu until something has been selected from the middle menu and so on up. My problem is that if I have everything generated and the user then changes something in the top or middle menus, I need to avoid generating the lower level stuff. The CGI documentation mentions an OnChange event that supports JavaScript, but (a) I don't want to learn JS, (b) I want my code to run where JS is disabled. The only plan I have is to create a hash of the menu values and compare these every time. It seems inelegant to me. Is there a better way do do it?
Regards,
John Davies
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI: which field has changed?
by CountZero (Bishop) on Feb 26, 2011 at 17:16 UTC | |
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 | |
|
Re: CGI: which field has changed?
by Anonymous Monk on Feb 26, 2011 at 14:11 UTC | |
by davies (Monsignor) on Feb 26, 2011 at 15:07 UTC |