Expired page with Ajax

4 messages Options
Embed this post
Permalink
Gerhard Obermann

Expired page with Ajax

Reply Threaded More More options
Print post
Permalink
Hi!

We are mainly using AJAX calls (e.g. using onClick events) to update our pages.
What is the best approach to make a redirect (full refresh) to a new page
if the seaside session expires.


Cheers

Gerhard




_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Keithy

Re: Expired page with Ajax

Reply Threaded More More options
Print post
Permalink
How do you start seaside2.9 swazoo server?

Keith
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Gerhard Obermann

Re: Expired page with Ajax

Reply Threaded More More options
Print post
Permalink
I am using Apache, FastGCI and GemStone with Seaside 2.8.


On Thu, Jul 9, 2009 at 9:15 PM, Keith Hodges <[hidden email]> wrote:
How do you start seaside2.9 swazoo server?

Keith
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Lukas Renggli

Re: Expired page with Ajax

Reply Threaded More More options
Print post
Permalink
In reply to this post by Gerhard Obermann
> What is the best approach to make a redirect (full refresh) to a new page
> if the seaside session expires.

I would set a global #onFailure: handler using SUResponders
(documented at http://www.prototypejs.org/api/ajax/responders) that
displays an error message and/or redirects to the entry point.

In Seaside 2.9 the same can be done using the PTResponders class of
Prototype, or the JQAjaxSetup class of JQuery.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside