<div class="gmail_quote">On Fri, Feb 26, 2010 at 10:56 AM, Diogo Resende <span dir="ltr"><<a href="mailto:dresende@thinkdigital.pt">dresende@thinkdigital.pt</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
<br>
>         What about something like:<br>
><br>
>         document.pushCookies(function () {<br>
>                // cookies have been pushed to the js process<br>
>                var x = document.getCookie("x");<br>
>                // whatever...<br>
>         });<br>
><br>
><br>
> This seems similar to Adam's proposed document.getAllCookies.<br>
><br>
><br>
> -Darin<br>
<br>
</div>No. pushCookies would be a way of pushing cookies to the current js and<br>
then you could call getCookie several times without defining a callback.<br>
It would be almost like:<br>
<br>
        document.observe("cookieload", myAppLoad)<br>
<br>
</blockquote></div><br><div>Right.  My point was that you could implement pushCookies on top of Adam's API.</div><div><br></div><div>-Darin</div>