I have placed the search field in a separate form which display in the left navigation frame and removed query fields from seach form and $$SearchView for search still query value is blank. Somehow it is not getting s.value to do the search.
function doSearch( s ) {
var regExp1 = /\bfield\b/;
var regExp2 = /[(,),<,>,\[,\]]/;
var str = s.value; if ( str == "" ){
alert("Please be sure to enter something to search for.");
I have placed the search field in a separate form which display in the left navigation frame and removed query fields from seach form and $$SearchView for search still query value is blank. Somehow it is not getting s.value to do the search.
function doSearch( s ) {
var regExp1 = /\bfield\b/;
var regExp2 = /[(,),<,>,\[,\]]/;
var str = s.value; if ( str == "" ){
alert("Please be sure to enter something to search for.");
s.focus();
} else {
if ( typeof regExp1.source != 'undefined' ) //supports regular expression testing
if ( regExp1.test( str ) || regExp2.test( str ) ){
var alrt = "Please note that you can not include:";
alrt += "\n\nThe reserved word 'field'\nthe characters [, ], (, ), < or >";
alrt += "\n\nin your search query!\n\nIf you are confident that you know";
alrt += "\nwhat you are doing, then you can\nmanually produce the URL required."
s.focus();
return alert( alrt );
}
openDbRelativeURL("Search2?SearchView&Query=" + s.value, parent.frames["DataFrame"]);
}