[thelist] cookie on/off detection

Jeff Howden jeff at members.evolt
Tue Aug 1 14:03:00 CDT 2000


jeremy,

:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: "Jeremy Ashcraft" <ashcraft at 13monkeys.com>
:
: Yeah, I ended up doing it like that.  I was just wondering
: if there was another way.  I ended up just writing a function
: to do the check and return true or false.  Thanks.
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

and putting it in it's own function is the best answer to the problem as you
can now use the function in other places with no tweaking necessary
(hopefully).

<tip type="JavaScript" author=".jeff">

when creating self-standing validation functions make it so they return a
true or false value.  that way you can do a check like this:

if(!IsDate(form.date_begin.value))

or

var checkString = IsString(foo);

</tip>

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