public
Description: YQL module for YUI3
Homepage: http://davglass.github.com/yui-yql/
Clone URL: git://github.com/davglass/yui-yql.git
name age message
file LICENSE Mon Sep 14 09:40:20 -0700 2009 Adding license file [davglass]
file README.textile Tue Aug 18 15:25:27 -0700 2009 Updated README [davglass]
directory docs/ Thu Oct 01 20:57:17 -0700 2009 Docs Update [davglass]
directory tests/ Thu Oct 01 20:43:25 -0700 2009 Refactored and swapped opts and params, default... [davglass]
file yql-min.js Thu Oct 01 20:43:25 -0700 2009 Refactored and swapped opts and params, default... [davglass]
file yql.js Thu Oct 01 20:43:25 -0700 2009 Refactored and swapped opts and params, default... [davglass]
README.textile

YQL sugar for YUI3

    YUI().use('yql', function(Y) {
        //Using events
        var q1 = new Y.yql('select * from github.user.info where (id = "davglass")');
        q1.on('query', function(r) {
            //Do something here.
        });
        q1.on('error', function(r) {
            //Do something here.
        });
        //Or the callback approach
        new Y.yql('select * from github.user.info where (id = "davglass")', function(r) {
            //Do something here.
            r.query; //The result
            r.error; //The error message
        });
    });