MADAM
        Vaishali
         first Dont post Javascript Questions to JSP-Interest...
coming to ur problem..
Here is the Example:
if(isNaN(age))
{
alert("Age must be number")
f1.age.focus();
return false;
}
And age should be in Number or Integer...try converting this as
var emp = parseInt(document.femp.emp_no.value);
OR
var emp = Number(document.femp.emp_no.value);
ok..now ur problem should solved..
         Regards
Vinay Kumar Chandu,
Systems Executive (Digitization)
Ph: 0091-44-8514035-38 (Extn: 320)(work)
       0091-9840173420(cell)


-----Original Message-----
From: Rakesh Menon [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 3:46 PM
To: [EMAIL PROTECTED]
Subject: Re: isNaN not working


Try converting to integer or number  ....
var emp = parseInt(document.femp.emp_no.value);
OR
var emp = Number(document.femp.emp_no.value);
if (isNan(emp)){
      alert("Invalid Employee Number");
}

"Vaishali S. Pandya" wrote:

> hello friends
> i use
> mynumber.isNaN()
> i want that mynumber should be digital only
> is there any mistake i have done?
>
> Thanks
> Vaishali
>
>
===========================================================================
> 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


"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system."

===========================================================================
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

Reply via email to