[Seaside-dev] Ajaxifier updates

Lukas Renggli renggli at gmail.com
Sun Sep 2 07:58:26 UTC 2012


Thanks for the write up, I didn't remember the hack with _n.

The proposed code looks like a good solution then.

Lukas

On 2 September 2012 09:29, Philippe Marschall
<philippe.marschall at gmail.com> wrote:
> On Sat, Sep 1, 2012 at 5:33 PM, Lukas Renggli <renggli at gmail.com> wrote:
>> Hi Philippe,
>>
>> Using the history API seems definitely a good idea.
>>
>> For the redirect I am missing the context. Why does the Ajaxifier need
>> to save the action URL? When using the back button you should not
>> trigger the actions again, but jump back to the render URL.
>
> Correct, but it used to save the action URL. The reason it did so is
> because there was no way of finding out the URL of the render
> continuation since all the links on the page are to action
> continuations. The Ajaxifier used to add a _n to the links and save
> those URLs. However that still means they are combined action/render
> pages which means the callbacks will be executed again. Removing the
> _n causes a redirect to the render continuation but there is no way in
> Javascript to find out to which page a redirect happened. That's why
> we added the header.
>
> Cheers
> Philippe
> _______________________________________________
> seaside-dev mailing list
> seaside-dev at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev



-- 
Lukas Renggli
www.lukas-renggli.ch


More information about the seaside-dev mailing list