Hey there ,

 You can use it like this but you need to build the Css for the
textbox of the search :

def search():
     "ajax search"
     return
dict(form=FORM(INPUT(_id='keyword',_class="textbox",_name='keyword',
              _onkeyup="ajax('bg_find', ['keyword'], 'target');")),
              target_div=DIV(_id='target'))


default/show.html :

{{extend 'layout.html'}}
<h1>Search wiki pages</h1>
[ {{=A('listall', _href=URL('index'))}}]<br />
{{=form}}<br />{{=target_div}}

...............................................

 /*CSS FOR THE ELEMENT WITH THE TEXTBOX CLASS*/
.textbox
{
width:50px;
highet:20px;
color:red;
.
.
.
.
}



Reply via email to