[Javascript] Can't get this script to write the cookie

Phillip Morgan pjmorgan at optushome.com.au
Fri May 31 22:34:44 CDT 2002


I have no idea whther it's right or wrong either. It struck me as odd,
but as I'm not a good JS programmer, I wasn't going to make any
assumptions. IAC, this is how the script came from whereever I
downloaded it... Wish I could remember where it was..
 
What are some good script sites?
 
phill

-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]
On Behalf Of SnarfLT at aol.com
Sent: Saturday, 1 June 2002 12:09 AM
To: javascript at LaTech.edu
Subject: Re: [Javascript] Can't get this script to write the cookie


I don't know the syntax of JavaScript very well, but I know that in Java
if you have a method that is defined with x number of parameters, and
you call upon a method of the same name with y number of parameters,
where y does not equal x, it will return an error saying that the method
does not exist.  I notice that you call upon function setCookie with 4
parameters: 'QLTReferrer', myId, expDate, cookiePath, but you defined
your function with 2 parameters: name, value.  I don't know if this is
wrong in JavaScript or not, its just an observation, and if it is wrong,
someone speak up and tell me, it would probably help me in the future.

// Scott 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20020601/f38394ad/attachment.htm>


More information about the Javascript mailing list