Select a default value for a TextSearch

View: New views
2 Messages — Rating Filter:   Alert me  

Select a default value for a TextSearch

by ish :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I am trying to select a default value for TextSearch, when page load or open.
I have following code on the page. I would like to select first line in the box and display data accordingly.

<div id="exhibit-browse-panel">
   Search
   <div ex:role="facet" ex:facetClass="TextSearch"></div>
   <hr/>
   <div ex:role="facet" ex:expression=".Film" ex:facetLabel="Film" ex:height="10em"></div>
<div>

Please could you help me out.

Many thank

Re: Select a default value for a TextSearch

by David Huynh-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ish wrote:

> Hi
>
> I am trying to select a default for TextSearch, when page load or open.
> I have following code on the page. I would like to select first line in the
> box and display data accordingly.
>
> <div id="exhibit-browse-panel">
>    Search
>    <div ex:role="facet" ex:facetClass="TextSearch"></div>
>    <hr/>
>    <div ex:role="facet" ex:expression=".Film" ex:facetLabel="Film"
> ex:height="10em"></div>
> <div>
>
> Please could you help me out.
>
> Many thank
>
>  

Try

    <div ex:role="facet" ex:facetClass="TextSearch"
        ex:query="some text"
        ></div>

and

    <div ex:role="facet" ex:expression=".Film" ex:facetLabel="Film"
        ex:selection="choiceA; choiceB"
        ex:height="10em"></div>

David

_______________________________________________
General mailing list
General@...
http://simile.mit.edu/mailman/listinfo/general
LightInTheBox - Buy quality products at wholesale price