This topic is locked

Simple Search - With Ajax

5/18/2008 4:13:24 PM
PHPRunner General questions
M
mmponline author

I need to change the search on the list page to show only the search box, no fields box , no contains box.
If I remove the contains box and change the code to:

add name="SearchOption" value="Contains", it works fine.
When I remove the fields box, it does not give the Ajax search anymore. How do I fix this as the Ajax search in imperative for this specific option.
Lastly, I need the result to open on a whole page (_top). How do I change this. I need to place this code on the homepage and the result needs to open on a whole new page (_top)
Thanks for any help.
Would like to put this on the "wishlist" where the different search boxes would be optional like in other apps. I used previously.

J
Jane 5/20/2008

Stephan,
find and modify following code on the list page on the Visual Editor tab:

<SPAN style="DISPLAY: none"><select id="ctlSearchField">

<option value="">Any field</option>

<option value="FieldName" {$search_FieldName}>FieldName</option>

...

</select></SPAN>


To show search results in the new window edit this code:

<FORM name=frmSearch action=register_list.php method=get target=_blank>

M
mmponline author 5/20/2008

Perrrrfect!
Thanks a lot!