Thread: Cookies and OOP
View Single Post
Old 01-11-2003, 11:21 AM   PM User | #6
Skyzyx
Regular Coder

 
Skyzyx's Avatar
 
Join Date: Aug 2002
Location: Silicon Valley, CA
Posts: 980
Thanks: 0
Thanked 0 Times in 0 Posts
Skyzyx is on a distinguished road
JKD, I'm not familiar with the syntax you used here:

Code:
Cookie: function(name, value, expires, domain, path, secure)
...
fill: function()
...
empty: function()
... with the colons and all. Would that be the same as...

Code:
this.Cookie=function(name, value, expires, domain, path, secure)
...
this.fill=function()
...
this.empty=function()
?

Also is it possible to pass arguments through an anonymous function within an object like this?:

Code:
this.fill(a, b, c)=function(a, b, c)
I was toying with something like this today, and I couldn't get it to work properly (or at all, rather).
__________________

Creator of SimplePie and Tarzan AWS, co-founder of WarpShare, co-built the Y! Messenger website, usability-focused, and an INFJ personality.
Skyzyx is offline   Reply With Quote