W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2010

[whatwg] HTML Cookie API

From: Diogo Resende <dresende@thinkdigital.pt>
Date: Fri, 26 Feb 2010 18:56:24 +0000
Message-ID: <1267210584.16522.4.camel@nasgul.local>


>         What about something like:
>         
>         document.pushCookies(function () {
>                // cookies have been pushed to the js process
>                var x = document.getCookie("x");
>                // whatever...
>         });
>         
> 
> This seems similar to Adam's proposed document.getAllCookies.
> 
> 
> -Darin

No. pushCookies would be a way of pushing cookies to the current js and
then you could call getCookie several times without defining a callback.
It would be almost like:

	document.observe("cookieload", myAppLoad)
Received on Friday, 26 February 2010 10:56:24 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:21 UTC