[thelist] Javascript snafu

Duncan O'Neill dbaxo at ihug.co.nz
Tue Sep 5 00:43:45 CDT 2000


Miinx,

du-uuuh...unbelievable..thanks for taking the time to point it out.

cheers,

Duncan
==================================================================

miinx wrote:
> 
> 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
> Karen
> 
> ---------------------------------------




More information about the thelist mailing list