This topic is locked

error on search

3/27/2008 6:17:07 AM
PHPRunner General questions
U
Uwe Loyal author

If I'm typing a searchstring in searchfield an then push the button search, a scripterror is shown.
document.forms.frmSearch.a is Null or no Object

Line: 2

Character: 4
Here jsfunctions.js:
function RunSearch()

{

document.forms.frmSearch.a.value = 'search'; document.forms.frmSearch.SearchFor.value = document.getElementById('ctlSearchFor').value;

if(document.getElementById('ctlSearchField')!=undefined)

document.forms.frmSearch.SearchField.value = document.getElementById('ctlSearchField').options[document.getElementById('ctlSearchField').selectedIndex].value;

if(document.getElementById('ctlSearchOption')!=undefined)

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

else

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

document.forms.frmSearch.submit();

}
Also "show all" generates an error
frmSearch.a is Null or no Object

Line: 170

Character: 2
How can I fix that Problem?
Rgds

Uwe Loyal

U
Uwe Loyal author 3/27/2008

.... found the fix for the Problem, reset page!
Rgds

Uwe Loyal