[whatwg] HTML Cookie API

Diogo Resende dresende at thinkdigital.pt
Fri Feb 26 10:56:24 PST 2010



>         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)




More information about the whatwg mailing list