Home | History | Annotate | Download | only in js

Lines Matching defs:xhr

165     function xhrCallback(xhr) {
166 if (xhr.status == 200) {
167 this.authToken_ = this.extractResponseField_(xhr.responseText, 'Auth');
171 var response = xhr.responseText;
234 var xhr = new XMLHttpRequest();
235 xhr.onreadystatechange = function() {
236 if (xhr.readyState == 4) {
237 callback(xhr);
240 xhr.open(method, url, true);
244 xhr.setRequestHeader(header, headers[header]);
248 xhr.send(body);
249 return xhr;
259 this.sendRequest('GET', url + '?alt=json', headers, null, function(xhr) {
260 if (xhr.status == 200) {
261 var feed = JSON.parse(xhr.responseText);
279 return this.sendRequest('POST', url, headers, body, function(xhr) {
280 if (xhr.status >= 200 && xhr.status <= 202) {
281 callback(xhr.responseText);