Не совсем, редирект идет через php
$.ajax({
type: 'POST',
beforeSend: function() {
$('.c-left').html('<img src = "/images/page_preloader.gif" alt = "loading..."/>');
},
url: url,
data: ({ajax_render:1}),
success: function(data, status, jqXHR) {
$('.c-left').html(data);
},
complete: function() {
}
})
Файл обработчик
some php code...
$this->redirect(/site/index);
Я пробовал через
var currentRequests = {};
$.ajaxPrefilter(function( options, originalOptions, jqXHR ) {
if ( options.abortOnRetry ) {
if ( currentRequests[ options.url ] ) {
currentRequests[ options.url ].abort();
}
currentRequests[ options.url ] = jqXHR;
}
});
Но не получилось.