This topic is locked

Simple search form wanted

7/8/2007 8:05:41 AM
PHPRunner General questions
P
punch author

Hello,
basic search in forms and advanced search are great functions. But for startup of my application, i want to use a very simple search form at the start.
Partly, i realised this with a sceond advanced search form. Everything is running fine. Now, my customer whishes a really simple form, only with text "name of field" and textfield (with ajax search), but without any further dropdowns ore buttons (he fears, that users will be confused on this).
If i delete all fields and buttons exept the dropdown between name and textfield, everything is running fine too. But if i delete at last the dropdown field between name and textfield, the form occures an site-error and doesn´t select the rigtht file anymore.
Is there a way to build such a simple search form? All i need ist on textfiled with ajax list and the search button.
Thanks and regards
Punch

Alexey admin 7/9/2007

Punch,
to get your page working modify generated include\jsfunctions.jsfile.

Find this line there:

document.forms.frmSearch.SearchOption.value = document.getElementById('ctlSearchOption').options[document.getElementById('ctlSearchOption').selectedIndex].value;

and replace it with:

document.forms.frmSearch.SearchOption.value = "Contains";