| From | John Lubotsky |
| Date | Mon, 14 Mar 2005 18:07:32 -0800 |
| Subject | [greenstone-users] How to create a search from using <select>? |
|
I'm a Greenstone newbie, designing a collection on OS X using v
2.52.
We want to enable users to choose a search string from a pulldown
menu (a <SELECT> tag), drawing the <OPTION> values ideally
from a metadata field, or else staticly embedded in the code.
Some example HTML to illustrate the idea is below. In the below
example, the text input would search ex.Title, and the option values
would come from foo.Continent.
Search for
documents containing the words
<input
type=text size=25> that pertain to
<select
name=continent>
<option
value=north_america>North America
<option
value=south_america>South America
<option
value=africa>Africa
<option
value=europe>Europe
<option
value=asia>Asia
<option
value=australia>Australia
</select>
I've searched the documentation but i'm stumped. Is this
possible? How do we do it?
Thanks and Best,
John Lubotsky
PS: I'm also interested in more generally being able to use
checkboxes, radio buttons, and other form elements. -j-
| |