Home | History | Annotate | Download | only in js

Lines Matching defs:xhr

9  * It expects to have available via XHR (relative path):
161 * Fetches |url| and returns it's text contents from the xhr.responseText in
166 var xhr = new XMLHttpRequest();
168 xhr.abort();
169 console.log("XHR Timed out");
183 xhr.onreadystatechange = function(){
184 if (xhr.readyState == 4) {
185 if (xhr.status < 300 && xhr.responseText) {
187 onSuccess(xhr.responseText);
194 xhr.onerror = handleError;
196 xhr.open("GET", url, true);
197 xhr.send(null);