[jQuery] Re: jQuery.ajaxSetup({ success: ... }) behavior

2009-03-02 Thread creemorian
, > return a specific status for it. It's good to use JSON response for > this so you can return several sets of data, such as statuses, data, > etc. > > On Feb 27, 12:45 pm, creemorian wrote: > > > Along with everyAJAXcallback, I'd like to

[jQuery] jQuery.ajaxSetup({ success: ... }) behavior

2009-02-27 Thread creemorian
Along with every AJAX callback, I'd like to ensure that the user session is still active. So I have the following: > jQuery.ajaxSetup({ >success: function(data, text) >{ > if ( data.event == "login" ) { >window.location.reload(); > } >} > }); The aforementioned c