Thanks David,

but ...

David Hodgkinson wrote:

>         q.popup_menu({ Name => 'section_id'
>                Values => section.keys.nsort
>                Default => "${params.section_id}"
>                Labels => section  } )


What I need is a popup menu with subcategories -- the HTML tags will be
SELECT, OPTGROUP with label attribute, and OPTION, which can also
have a label attribute. So "optgroup" has to appear in there somewhere.

Of course, I can make the popup with a loop and the HTML tags, but CGI.pm writes better HTML than I do :-)

I've tried various combinations that attempt to mimic the CGI.pm dox examples, like
   cgi.popup_menu(*
       optgroup(
           {
               label=>"alabel",
               values=>["eenie", "meenie", "minie"]
           }  ),

       optgroup({ label=>"another label", ... }
    )
But I just can't seem to get the brackets, braces, parentheses and commas all in the right places so it works the way it should

Bruce
*

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to