[thelist] Javascript snafu

miinx miinx at miinx.com.au
Tue Sep 5 00:24:41 CDT 2000

Duncan O'Neill wrote:

>      var the_date=new Date("September 10, 2000");
>      var the_cookie_date=the_date.toGMTString();
>      the cookie=the_cookie  + ";expires=" + the_cookie_date;
>      document.cookie=the_cookie;

Hi Duncan,

One obvious thing in the above code is that in the 3rd line you've missed
the underscore in your variable assignment.  ie.  you've got "the cookie
= ..." instead of "the_cookie = ..."

If it's not that, try sticking a few alert statements bwn each line to
see that your var's are assigning correctly and so on.

Not much, but HTH

More information about the thelist mailing list