Software engineering notes

Dav Glass’ YQL module for YUI 3 is awesome

leave a comment »

sample app:

<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
YUI().use('yql', 'node', function(Y) {
 var q1 = new Y.yql('select source from where photo_id in (select id from where text="panda" and safe_search="true")');
 q1.on('query', function(r) {
     var li = Y.get('li');
     for (var i = 0; i < r.results.size.length; i++) {
         if (-1 !== r.results.size[i].source.indexOf('_s')) {
             var clone = li.cloneNode(true);
             clone.query('img').set('src', r.results.size[i].source);



Update 12/13/10 YUI 3 now supports YQL natively:

Written by Erik

December 24, 2009 at 2:51 am

Posted in code

Tagged with , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: