davglass / yui-yql
- Source
- Commits
- Network (3)
- Issues (0)
- Downloads (0)
- Graphs
-
Branch:
master
Dav Glass (author)
Thu Oct 01 20:57:17 -0700 2009
yui-yql /
| name | age | message | |
|---|---|---|---|
| |
LICENSE | Mon Sep 14 09:40:20 -0700 2009 | |
| |
README.textile | Tue Aug 18 15:25:27 -0700 2009 | |
| |
docs/ | Thu Oct 01 20:57:17 -0700 2009 | |
| |
tests/ | Thu Oct 01 20:43:25 -0700 2009 | |
| |
yql-min.js | Thu Oct 01 20:43:25 -0700 2009 | |
| |
yql.js | Thu Oct 01 20:43:25 -0700 2009 |
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
});
});
