U can try this way also
var i=window.event.keyCode;
window.status = "Ready";
if(i=!13){
//fetch ur result here
}
Meenu
> -----Original Message-----
> From: ShriKant Vashishtha [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, December 13, 2001 12:57 PM
> To: [EMAIL PROTECTED]
> Subject: Urgent !!!!!!!! Please help me
>
> Hi,
>
> My JSP contains the following things
>
> A text box
> and a GO button which fetches the result based on the criteria entered in
> textbox.
>
> The GO button has a validation for a blank search criteria and displayes
> alert
> message if we press GO without entering anything.
>
> But the problem is, if I hit on ENTER, it fetches me the result even if I
> haven't entered anything in the text box. It does not go through the
> validation which executes on pressing on GO button.
>
> Please help...........
> -ShriKant
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com