aboutsummaryrefslogtreecommitdiff
path: root/src/js/chrome/js/platform-ajax.js
blob: e5b4d1ca9796b88a53a4660b54955885372fd23a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26


var fiveui = fiveui || {};

(function() {

fiveui.ajax = fiveui.ajax || {};

/**
 * Use jQuery to get the resource, calling the success or error continuations
 * when the result is returned.  This always retrieves as text, leaving any
 * further processing to the success continuation.
 */
fiveui.ajax.get = function(url, options) {

  return jQuery.ajax(url, {

    cache: false,

    dataType: 'text',

  });

};

})();