[Xapian-discuss] For more UI functionality: OmegaScript, C++or other?

Chris chris at s-4-u.net
Tue Apr 26 10:15:48 BST 2011


On 04/26/2011 10:17 AM, xapian at catcons.co.uk wrote:
> <snip>
> Here's the helper fragment, filenamedropbox
>
> <SELECT NAME=B>
> <OPTION VALUE="" SELECTED>Any
> <OPTION VALUE=Edoc>.doc
> <OPTION VALUE=Edocx>.docx
> <OPTION VALUE=Eodp>.odp
> <OPTION VALUE=Eods>.ods
> <OPTION VALUE=Eodt>.odt
> <OPTION VALUE=Epdf>.pdf
> <OPTION VALUE=Epps>.pps
> <OPTION VALUE=Eppsx>.ppsx
> <OPTION VALUE=Eppt>.ppt
> <OPTION VALUE=Ertf>.rtf
> <OPTION VALUE=Etxt>.txt
> <OPTION VALUE=Exls>.xls
> <OPTION VALUE=Exlsx>.xlsx
> </SELECT>
not important, but its 2011 and html5 is at the door, so:
<option value=''>text</option>   <--- closing tag

> An issue with this implementation is that it only allows specifying a single
> file type; it would be nice to choose several.  Adding MULTIPLE to the
> SELECT tag uses too much vertical space and CHECKBOXes only give on/off
> values.  Hmm ... 
Checkboxes support a value attribute, something like

<input type="checkbox" name="B" value="Edoc" /> doc
<input type="checkbox" name="B" value="Edocx" /> docx

allows searching for multiple types.

Greets, Chris




More information about the Xapian-discuss mailing list