This can be achieved with JavaScript , use RegExp object. The RegExp()
represents a regular expression
that is used for pattern matching.
<script language="JavaScript">
//function to check for numeric value
function isNum(str)
{
//define a RegExp object which checks for numeric input
var regexp=/^d({9})$/;
return regexp.test(str);
//d stand for digit
}
RegExp.test return a boolean , in this case if your input is not numeric
a false is returned , based on this boolean value you can
display messages or reject value or whatever you want to do
Santosh
</script>
Suresh kumar K Badiga <[EMAIL PROTECTED]> on 08/21/2000 08:01:00 AM
Please respond to A mailing list about Java Server Pages specification and
reference <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Santosh Daryani/IT/Aon Consulting)
Subject: New Web Application
Hi all
I am Using Microsoft FrontPage 2000 Using this i created one edit box in
this i wanted to enter only numbers so how to do this please tell me ?
I had done like this I selected that edit box and went to properties their i
selected numbers even though i am able to enter characters in that edit box.
Please tell me how to do this
Thanks in advance.
-Suresh
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets