[thelist] Grrr... javascript problems

Jeff jeff at members.evolt.org
Wed Aug 2 11:30:27 CDT 2000


james,

:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: James Spahr <james at designframe.com>
:
:
: the problem occurs when x is NaN (javascipt speak
: for not-a-number). the if statement use to catch it - now
: it does not. Any clue as to why?
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

i'm guessing changing this:

    if (x != Number.NaN){

to this:

    if (!isNaN(x)){

might work better.

you might wanna read up on the isNaN() method in the javascript
documentation.

good luck,

.jeff

name://jeff.howden
game://web.development
http://www.evolt.org/
mailto:jeff at members.evolt.org





More information about the thelist mailing list