• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
2011 HackU UCSD
 

2011 HackU UCSD

on

  • 1,434 views

HackU Technical kickoff talk at UCSD in San Diego, CA (2011)

HackU Technical kickoff talk at UCSD in San Diego, CA (2011)

Statistics

Views

Total Views
1,434
Views on SlideShare
1,434
Embed Views
0

Actions

Likes
0
Downloads
3
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    2011 HackU UCSD 2011 HackU UCSD Presentation Transcript

    • 1
    • 2
      SELECT * FROM InternetBuilding Queries and Stuff
    • 3
    • 4
    • Skills you May Already Have
      SELECT myColumn, myTitle
      FROM myTable
      WHERE myColumn = 'value'
      AND myTitle = 'title'
      LIMIT 3 OFFSET 10
    • Is YQL a Database?
    • NO!
    • 8
      YQL Test Console
      Available At: http://developer.yahoo.com/yql/console
    • Don’t Reinvent the Wheel
    • Getting Started
    • Step 1: Include Global JS
      <script src="http://yui.yahooapis.com/3.3.0/build/yui/yui-min.js"></script>
    • Step 2: Create YUI Global Object
      YUI().use(’module1', ’module2', function(Y) {
      //module1 is available
      //module2 is available
      });
    • DOM Manipulation
    • YUI().use('node', function(Y) {
      var node1 = Y.one('#myNode');
      varnode2 =Y.all('#myNodeli');
      nodeID = node1.get('id');
      node1.set('innerHTML','new content');
      node2.addClass('bar');
      });
    • Handling Events
    • YUI().use('node', function(Y) {
      Y.one('#demo').on('click', function(e) {
      alert('event: ' + e.type +
      ' target: ' + e.target.get('tagName'));
      });
      });
    • Making YQL Requests
    • YUI().use('yql', function(Y) {
      new Y.yql(’SHOW Tables', function(r){
      r.query; //the result
      r.error; //the error message
      });
      });
    • Cross-Domain Requests
    • YUI().use("io-xdr", function(Y) {
      varxdrCfg = { src:'io.swf' };
      Y.io.transport(xdrCfg);
      varcfg = {
      use: 'flash', //use flash transport
      data: 'foo=bar&baz=boo' //data to transfer
      timeout: 3000, //transfer timeout
      };
      varGlobalEventHandler = {
      success: function(id, o, args) {
      vardata = o.responseText;
      }};
      Y.on('io:success', GlobalEventHandler.complete, this);
      varrequest = Y.io(uri, cfg);
      });
    • Need Something Else? Get it from the Gallery
      http://yuilibrary.com/gallery/
    • This Presentaton
      http://www.slideshare.net/jcleblanc
      YQL Documentation
      http://developer.yahoo.com/yql
      YUI Documentation
      http://developer.yahoo.com/yui
      Contact Me
      Twitter: @jcleblanc