You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jack Lauman <jl...@nwcascades.com> on 2004/11/25 20:40:29 UTC
[users@httpd] JavaScript Question
I'm using the following JavaScript to create lists of restaurants by
Location and Cuisine. Is there a way to modify the script to accept a
value for the restaurant name that would be similar to a %LIKE% function
in SQL when the user hits the submit button? i.e. case-insensitive and
returns a list of anything similar to the 'text' query entered by the user.
Thanks,
Jack
<script language="JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore, field){ //v3.0
eval(targ+".location='http://www.mydomain.com/restaurant/filter.jsp?field="+field+"&value="+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<><form name="selectLocation" method="get"
location="http://www.mydomain.com/restaurant/filter.jsp">
<input type="hidden" name="field" value="city">
<select name="location" size="1"
onChange="MM_jumpMenu('parent',this,0,'city')">
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org