[thelist] Javascript snafu

Duncan O'Neill dbaxo at ihug.co.nz
Tue Sep 5 03:22:58 CDT 2000


Miinx,

uuh-huh....unbelievable...I actually nutted it out after a couple of 
hours of looking for everything BUT the obvious. I have it working 
now. Meanwhile I hope I've provided some cheap amusement. Anyhow, 
thank you for bothering to write and 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