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
In reply to CGI: which field has changed? by davies
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |