Skip to main content.
home | support | download

Back to List Archive

swish.cgi - select_by_meta - popup_menu - problem

From: Peter Morling <pmorling(at)not-real.nat.sdu.dk>
Date: Wed Mar 31 2004 - 14:33:01 GMT
Hi,

I have this problem, i have defined the following in swish.cgi:

---
        select_by_meta  => {
            method      => 'popup_menu',
            metaname    => 'module',     # Can't be a metaname used
elsewhere!
            values      => [qw/01 02 03 04 05 06 07 08 09 10 11 12 13 14
15/],
            description => 'Limit search to Module: ',
        },
---

It works fine, but when using the popup_menu option, the default value is
always '01' (sbm=01, when the request is created). I would like to set the
selected value to 'nothing', but i don't know how? It's not a problem in
e.g. a html document, there i can set the selected value to something like:

---
<select name="sbm">
<option selected="selected" value="">Head of the popup_menu...</option>
---

this works fine, but i would like swish.cgi to return that (or alike) can
any help?

Best,
Peter








Programmer Peter Morling, University of Southern Denmark
Department of Statistics, Sdr. Boulevard 23A, DK-5000 Odense C
Phone (+45) 6550 3399
Received on Wed Mar 31 06:33:02 2004