Fork me on GitHub

I/O

Allows you to make asynchronous HTTP (Ajax) requests.

YUI().use(
  'aui-io-request',
  function (Y) {
    Y.io.request(
      'https://alloyui.com/io/data/content.html',
      {
        on: {
          success: function() {
            var data = this.get('responseData');
            alert(data);
          }
        }
      }
    );
  }
);