://jquery.com/discuss/
--
View this message in context:
http://www.nabble.com/Cookie-handling-in-JQuery-tf2256520.html#a6332370
Sent from the JQuery forum at Nabble.com.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
A cookie handler.On 9/12/06, Rey Bango [EMAIL PROTECTED] wrote:
What would you like to see in a plugin?Rey...Yehuda Katz wrote: Would def. make a nice plugin. On 9/11/06, *Rey Bango* [EMAIL PROTECTED] mailto:
[EMAIL PROTECTED] wrote: Does JQuery have any methods specific to working with cookies
On 12/09/06, Rey Bango [EMAIL PROTECTED] wrote:
Does JQuery have any methods specific to working with cookies (eg: set,
get, et al) or should I just one of the many premade functions out in
the wild?
Rey...
Do cookies really have much to do with jQuery? Unless a plugin is
needed to attach
It doesn't have to do with DOM Scripting, but then, neither does $.ajax. It's a commonly enough required feature that obviously doesn't belong in the core, but would be nice to tack on to an existing jQuery installation as a plugin without worrying about incompatibilities.
-- YehudaOn 9/13/06, Sam
Yehuda Katz schrieb:
It doesn't have to do with DOM Scripting, but then, neither does $.ajax.
It's a commonly enough required feature that obviously doesn't belong in
the core, but would be nice to tack on to an existing jQuery
installation as a plugin without worrying about
I never really worked with cookies, therefore I'm not sure if those
methods would have any practical use at all.Cookies are limited to 4KB of data I believe, so they might be useful for short pieces of text like user preferences and such.
___
jQuery
Under RFC 2695, a user-agent (such as a Web browser)
should provide at least 4096 bytes per cookie - so the
4KB is a minimum for storage - not a maximum. See:
http://www.faqs.org/rfcs/rfc2965 (section 5.3).
Yes, but SHOULD is not MUST.
http://rfc.net/rfc2119.html
All modern browsers do
I think it would be best if we kept this in the typically succinct
syntax of jQuery. such as .html() setting and getting depending on the
attributes. This is a simple version that just consolidates your
functions but...
$.cookie = function(name, value, expires, path, domain, secure) {
if
Under RFC 2695, a user-agent (such as a Web
browser) should provide "at least 4096 bytes per cookie" – so
the 4KB is a minimum for storage – not a maximum. See: http://www.faqs.org/rfcs/rfc2965
(section 5.3).Well, that's news to me. Thanks for the clarification.
-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Methvin
Sent: Wednesday, September 13, 2006 2:22 PM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Cookie handling in JQuery
Under RFC 2695, a user-agent (such as a Web browser)
should provide at least 4096 bytes per
What would you like to see in a plugin?
Rey...
Yehuda Katz wrote:
Would def. make a nice plugin.
On 9/11/06, *Rey Bango* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
wrote:
Does JQuery have any methods specific to working with cookies (eg: set,
get, et al) or should I just one of
Would def. make a nice plugin.On 9/11/06, Rey Bango [EMAIL PROTECTED] wrote:
Does JQuery have any methods specific to working with cookies (eg: set,get, et al) or should I just one of the many premade functions out inthe wild?Rey...___
jQuery mailing
12 matches
Mail list logo