in reply to MakeDropDowns using CGI

An anon hash with key value pairs used as the selection options.

Hashes are not sorted in an expectable way. You might want to add an option to supply ordered key/value pairs.

- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.

Replies are listed 'Best First'.
Re: Re: MakeDropDowns using CGI
by hagus (Monk) on May 17, 2002 at 01:40 UTC
    I did a quick hack for my personal version of this class which returns a hash, keyed by 'shortname', and the value is just the '<form><select>...</form>' stuff. So you're not locked into a particular table structure, and you can enforce arbitrary ordering.

    The 'setCookie' function piked my interest. It's really something rather generic, but it *is* actually required for the thing to work. So should I write a separate javascript class to contain all my js functions? How could I organise a single function call which guarantees all the necessary js stuff is outputted (even if some js is only contained in other classes). Hmm ...

    --
    Ash OS durbatulk, ash OS gimbatul,
    Ash OS thrakatulk, agh burzum-ishi krimpatul!
    Uzg-Microsoft-ishi amal fauthut burguuli.