  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | JavaScript Question | JavaScript Question 2004-11-23 - By Jack Lauman
Back <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859 (See http://ISO-8859.ora-code.com)-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> I'm using the following JavaScript to create lists of restaurants by Location and Cuisine. <br> Is there a way to modify the script to accept a value for the restaurant name that would<br> be similar to a %LIKE% function in MySQL when the user hits the submit button? <br> <br> Thanks, <br> <br> Jack <br> <br> <script language="JavaScript"> <br> <!-- <br> function MM_jumpMenu(targ,selObj,restore, field){ //v3.0 <br> eval(targ+".location='<a class="moz-txt-link-freetext" href="http://www.tasteofwhatcom.com/restaurants-tow/filter.jsp?field=">http:/ /www.mydomain.com/restaurant/filter.jsp?field=</a>"+field+"&value="+selObj .options[selObj.selectedIndex].value+"'"); <br> if (restore) selObj.selectedIndex=0; <br> } <br> //--> <br> </script> <br> <br> <><<span class="start-tag">form</span><span class="attribute-name"> name</span>=<span class="attribute-value">"selectLocation" </span><span class="attribute-name">method</span>=<span class="attribute-value">"get" locatio</span><span class="attribute-name">n</span>=<span class="attribute-value"><a class="moz-txt-link-rfc2396E" href="http://www .mydomain.com/restaurant/filter.jsp">"http://www.mydomain.com/restaurant/filter .jsp"</a></span>><br> <<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"hidden" </span><span class="attribute-name">name</span>=<span class="attribute-value">"field" </span><span class="attribute-name">value</span>=<span class="attribute-value">"city"</span>><br> <<span class="start-tag">select</span><span class="attribute-name"> name</span>=<span class="attribute-value">"location" </span><span class="attribute-name">size</span>=<span class="attribute-value">"1" </span> <span class="attribute-name">onChange</span>=<span class="attribute-value">"MM _jumpMenu('parent',this,0,'city')"</span>><br> </><br> <br> <br> </body> </html> __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff SERVLET-INTEREST". <p> 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 <p>
|
|
 |