JavaScript Question
Jack Lauman <[email protected]> Tue, 23 Nov 2004 20:31:50 -0800
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Organization | nwcascades.com |
| Message-ID | <[email protected]> |
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 MySQL when the user hits the submit
button?
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')">
___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html