Lines Matching refs:xhr
211 function( xhr, url ) { argument
212 section.outerHTML = slidify( xhr.responseText, {
221 function( xhr, url ) { argument
223 'ERROR: The attempt to fetch ' + url + ' failed with HTTP status ' + xhr.status + '.' +
258 var xhr = new XMLHttpRequest(),
265 xhr.overrideMimeType( 'text/html; charset=' + datacharset );
268 xhr.onreadystatechange = function( section, xhr ) { argument
269 if( xhr.readyState === 4 ) {
271 if ( ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status === 0 ) {
273 resolve( xhr, url );
278 reject( xhr, url );
282 }.bind( this, section, xhr );
284 xhr.open( 'GET', url, true );
287 xhr.send();
291 resolve( xhr, url );