Hey folks. I have been trying to figure out how one might do this. It seems like it ought to be simple.
I have a select menu initially generated in my init block. Pretty straightforward. Here's the HTML. Select an object<br /> <select name="object_id" value="<% $ARGS{'object_id'} %>" onchange="visibility('subobject');"> <option value=""></option> % foreach my $object (@$objects) { <option value="<% $object->[0] %>"><% $object->[8] %></option> % } </select> So, the part that gets hairy is the subobject. I need somehow to grab the selected value above and use it to limit the database query that generates the next menu. As is, my subobject select is just another full-fledged database query that gets all subobjects, not those tied ot the object. It looks exactly like the above. <div style="display:none" id="subobject"> Select a subobject<br /> <select name="subobject" value="<% $ARGS{'subobject'} %>" onchange="visibility('subsub');"> <option value=""></option> % foreach my $subobject (@$subobjects) { <option value="<% $subobject->[0] %>"><% $subobject->[3] %> by <% $subobject->[5] %></option> % } </select> There must be some bit of Perlish thinking that is escaping me. Some bit of magic I don't know. Here's hoping! Amiri -- View this message in context: http://www.nabble.com/Chained-Select-Menus-w-o-javascript--tf4565281.html#a13030988 Sent from the Perl Mason - Users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users