HighDots Forums  

Re: Validation

Javascript (German) Programmiersprache JavaScript. (de.comp.lang.javascript)


Discuss Re: Validation in the Javascript (German) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dietmar Meier
 
Posts: n/a

Default Re: Validation - 01-27-2005 , 05:51 AM






Aleksandar wrote:

Quote:
Nun zum Problem:
Darf der User eine Zahl zwischen z.B. 1 und 12 eingben funzt das
Script
bei 1,10,12,13, etc. und überträgt die Zahl an eine andere Seite.
Bei 2,3,4,5,6,7,8,9 erhalte ich

alert("Die eingegebene Menge ist in diesem Feld nicht möglich!");
You should rather use news:de.comp.lang.javascript if you want to ask
questions in german language.

For a solution of your problem see the FAQL of dcljs:
http://dcljs.de/faq/antwort.php?Antw...en_vergleichen

Short summary: Comparision operators do compare lexically if one operand
is of type 'string'. Form field values are of type 'string'.

Xpost & F'up2 dcljs.

ciao, dhgm



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.