Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • From: javascript@xxxxxxxxxx (javascript@xxxxxxxxxx)
  • Subject: [Javascript] Can't get this script to write the cookie
  • Date: Fri, 31 May 2002 10:09:05 EDT

--part1_ad.1df54bd5.2a28de01_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

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

--part1_ad.1df54bd5.2a28de01_boundary
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

<HTML><FONT FACE=arial,helvetica><FONT  SIZE=2 FAMILY="FIXED" FACE="Courier New" LANG="0">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.&nbsp; 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.&nbsp; 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.<BR>
<BR>
// Scott</FONT></HTML>

--part1_ad.1df54bd5.2a28de01_boundary--