[jQuery] Re: Detect session timeouts in ajax calls

2007-10-10 Thread Dan G. Switzer, II
Robert, >> It does seem like the global events should fire *before* individual >calls, >> that way you could cancel the other events in the queue... >> > >really? i think the docs say the other way around.. i like to know how >that could be done - cancel the other events. not for the error >handl

[jQuery] Re: Detect session timeouts in ajax calls

2007-10-10 Thread Robert Wagner
2007/10/10, Dan G. Switzer, II <[EMAIL PROTECTED]>: > > >> Actually if you use the 403 - Forbidden HTTP response status code, then > >it > >> should trigger the ajaxError() event: > >> > >> http://docs.jquery.com/Ajax/ajaxError#callback > >> > >> This means you could really easily add a check to s

[jQuery] Re: Detect session timeouts in ajax calls

2007-10-10 Thread Dan G. Switzer, II
>> Actually if you use the 403 - Forbidden HTTP response status code, then >it >> should trigger the ajaxError() event: >> >> http://docs.jquery.com/Ajax/ajaxError#callback >> >> This means you could really easily add a check to see if the status code >is >> 403 and then handle things appropriatel

[jQuery] Re: Detect session timeouts in ajax calls

2007-10-10 Thread Robert Wagner
> Robert, > > >> I already blogged about 2 straightforward approaches: > >> http://blog.pengoworks.com/blogger/index.cfm?action=blog:605 > >> > >> And example code: > >> http://www.pengoworks.com/workshop/jquery/session_expired_example.cfm > >> > >> All of this is pretty easy to integrate into you

[jQuery] Re: Detect session timeouts in ajax calls

2007-10-10 Thread Dan G. Switzer, II
Robert, >> I already blogged about 2 straightforward approaches: >> http://blog.pengoworks.com/blogger/index.cfm?action=blog:605 >> >> And example code: >> http://www.pengoworks.com/workshop/jquery/session_expired_example.cfm >> >> All of this is pretty easy to integrate into your site's JS frame

[jQuery] Re: Detect session timeouts in ajax calls

2007-10-10 Thread Robert Wagner
> > I already blogged about 2 straightforward approaches: > http://blog.pengoworks.com/blogger/index.cfm?action=blog:605 > > And example code: > http://www.pengoworks.com/workshop/jquery/session_expired_example.cfm > > All of this is pretty easy to integrate into your site's JS framework so > it's

[jQuery] Re: Detect session timeouts in ajax calls

2007-10-10 Thread Dan G. Switzer, II
>Here is an interesting article: >http://www.coldfusionjedi.com/index.cfm/2007/10/8/Ask-a-Jedi-How-can-you- >timeout-a-session-in-an-Ajaxbased-application > >Now, really, is there a way somewhere in the jQuery API that helps in >detecting session timeouts in ajax calls? > >If there is not I would