On Thu, 25 Jan 2007 14:26:01 +0100 "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> in these AJAX/AJAJ-loaded times, on problem occurs that we didn't
> have before: if a sessions times out, an asynchronous request might
> fail. However, this isn't communicated properly, or at least I failed
> to see this.
>
> Any suggestions on how to proceed with this? I'm already having a
> sort of protocol in place, via a decorator, that will communicate
> some additional information in case of errors. Is there a hook for
> session out-timed request in json-methods I could attach this
> protocol logic as well?
>
> Diez
We just wrapped loadJSONDoc and always add a Errback that has an if:
if (result.number == 500 &&
result.req.responseText.search(/Root.login/) != -1) {
I can't remember why I look for Root.login, but I think it has to do
with the redirect variables.
Jason
signature.asc
Description: PGP signature

