Lines Matching refs:xhr
186 options.beforeSend = function(xhr, settings) { argument
193 xhr.setRequestHeader('X-PJAX', 'true')
194 xhr.setRequestHeader('X-PJAX-Container', context.selector)
196 if (!fire('pjax:beforeSend', [xhr, settings]))
201 if (fire('pjax:timeout', [xhr, options]))
202 xhr.abort('timeout')
212 options.complete = function(xhr, textStatus) { argument
216 fire('pjax:complete', [xhr, textStatus, options])
218 fire('pjax:end', [xhr, options])
221 options.error = function(xhr, textStatus, errorThrown) { argument
222 var container = extractContainer("", xhr, options)
224 var allowed = fire('pjax:error', [xhr, textStatus, errorThrown, options])
230 options.success = function(data, status, xhr) { argument
237 var latestVersion = xhr.getResponseHeader('X-PJAX-Version')
239 var container = extractContainer(data, xhr, options)
292 fire('pjax:success', [data, status, xhr, options])
313 var xhr = pjax.xhr
314 if ( xhr && xhr.readyState < 4) {
315 xhr.onreadystatechange = $.noop
316 xhr.abort()
320 var xhr = pjax.xhr = $.ajax(options)
322 if (xhr.readyState > 0) {
330 fire('pjax:start', [xhr, options])
331 fire('pjax:send', [xhr, options])
334 return pjax.xhr
601 function extractContainer(data, xhr, options) { argument
606 obj.url = stripPjaxParam(xhr.getResponseHeader('X-PJAX-URL') || options.requestUrl)