datasource-xhr.js revision 9e58396d3563168e91dc995170288bc18b84ab6f
2fdf8d4f1ad797aaf0bfd3af88e4c04402b9ce3bMatt Sweeney * The DataSource utility provides a common configurable interface for widgets to
2fdf8d4f1ad797aaf0bfd3af88e4c04402b9ce3bMatt Sweeney * access a variety of data, from JavaScript arrays to online database servers.
2fdf8d4f1ad797aaf0bfd3af88e4c04402b9ce3bMatt Sweeney * @module datasource-xhr
2fdea3dd40cb6e0b382e7c0387a76f5290cadd27Luke Smith * @requires datasource-base
2fdf8d4f1ad797aaf0bfd3af88e4c04402b9ce3bMatt Sweeney * @title DataSource XHR Submodule
feb1dc670b0d4e1c6fcff58b35b36da3dfc5f18cJenny Donnelly * XHR subclass for the YUI DataSource utility.
feb1dc670b0d4e1c6fcff58b35b36da3dfc5f18cJenny Donnelly * @class DataSource.XHR
feb1dc670b0d4e1c6fcff58b35b36da3dfc5f18cJenny Donnelly * @extends DataSource
93298460d1839a963f1f5979e90ee59dccf5b855Matt Sweeney * @constructor
93298460d1839a963f1f5979e90ee59dccf5b855Matt Sweeney var XHR = function() {
feb1dc670b0d4e1c6fcff58b35b36da3dfc5f18cJenny Donnelly XHR.superclass.constructor.apply(this, arguments);
93298460d1839a963f1f5979e90ee59dccf5b855Matt Sweeney /////////////////////////////////////////////////////////////////////////////
93298460d1839a963f1f5979e90ee59dccf5b855Matt Sweeney // DataSource.XHR static properties
93298460d1839a963f1f5979e90ee59dccf5b855Matt Sweeney /////////////////////////////////////////////////////////////////////////////
93298460d1839a963f1f5979e90ee59dccf5b855Matt Sweeney * Class name.
feb1dc670b0d4e1c6fcff58b35b36da3dfc5f18cJenny Donnelly * @property DataSource.XHR.NAME
93298460d1839a963f1f5979e90ee59dccf5b855Matt Sweeney * @type String
93298460d1839a963f1f5979e90ee59dccf5b855Matt Sweeney * @value "DataSource.XHR"
93298460d1839a963f1f5979e90ee59dccf5b855Matt Sweeney /////////////////////////////////////////////////////////////////////////////
93298460d1839a963f1f5979e90ee59dccf5b855Matt Sweeney // DataSource.XHR Attributes
feb1dc670b0d4e1c6fcff58b35b36da3dfc5f18cJenny Donnelly /////////////////////////////////////////////////////////////////////////////
93298460d1839a963f1f5979e90ee59dccf5b855Matt Sweeney * Pointer to IO Utility.
93298460d1839a963f1f5979e90ee59dccf5b855Matt Sweeney * @attribute io
93298460d1839a963f1f5979e90ee59dccf5b855Matt Sweeney * @type Y.io
io: {
_handleRequest: function(e, o) {
cfg = {
on: {
o.error = true;
context: this,
arguments: {
return o.tId;