Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Numeric VAR lenght limit?


Message #1 by "Sebastian Pittari" <mailing@3...> on Tue, 28 Nov 2000 21:08:42 -0300
Hi,

Is there a way to avoid a numeric field (with a numeric value) from a form
not to limit its lenght to a five position numbers?

I take the field value with the onBlur event, the JScript function compares
it with a previous one already entered in the same form. The routine
function receives the values cutting the number taking only the first 5
positions, ingnoring the rest.

i.e. Imagine a comparison function. If u enter number A = 80000, number B 
60000, then it would return A is greater than B... now if you take the same
A value and make B = 120000, the result will be tha same before, thatīs
because B is taken as 12000 and not as 120000.

Any detail that I am blind to?

As you could imagine, I am a rookie to JScript, and have to "translate" some
application to this languaje.

Thanks in advance.


Sebs.


  Return to Index