Re: validate numeric

2004-05-20 Thread Julia Weaver
Henrique, Thank you! it works! --- Henrique VIECILI <[EMAIL PROTECTED]> wrote: > Hi Julia, > > You can use javascript and/or server-side > validation: > > javascript: > > isNaN(field.value); //verify if the value 'is not a > number' > > server side: (there are many ways) > > try { > Doub

Re: validate numeric

2004-05-20 Thread Henrique VIECILI
Hi Julia, You can use javascript and/or server-side validation: javascript: isNaN(field.value); //verify if the value 'is not a number' server side: (there are many ways) try { Double.parseDouble(getField()); } catch (NumberFormatException nfe) { // if this exception is thrown the valu