Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
pjdonnelly committed Nov 10, 2010
1 parent dffe18d commit 1a1f48a
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions yuiyqlrequestmodule_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@
</script>
</head>
<body>
<div id="title"></div>
<div id="title"></div>
<div id="img"></div>
<script type="application/javascript">
YUI().use('node','yql', function(Y) {
<script type="application/javascript">
YUI().use('node','yql', function(Y) {
var titlediv = Y.one('#title');
var imgdiv = Y.one('#img');
var imgdiv = Y.one('#img');

//use YQLRequest if you need to change the protocol to https, otherwise you can use the regular Y.YQL module.

//use YQLRequest if you need to change the protocol to https, otherwise you can use the regular Y.YQL module.

Y.YQL = new Y.YQLRequest('select * from netflix.catalog(1) where term = "breaking away"', function(r){
var title = r.query.results.catalog_title.title.regular;
var img = '<img src="'+r.query.results.catalog_title.box_art.large+'">';
titlediv.append(title);
imgdiv.append(img);
}, {
base: '://query.yahooapis.com/v1/yql?',
env: 'store://257Bv7SEAYewPfoOdKMEvB'
}, {
proto: 'https'
}).send();
var title = r.query.results.catalog_title.title.regular;
var img = '<img src="'+r.query.results.catalog_title.box_art.large+'">';
titlediv.append(title);
imgdiv.append(img);
}, {
base: '://query.yahooapis.com/v1/yql?',
env: 'store://257Bv7SEAYewPfoOdKMEvB'
}, {
proto: 'https'
}).send();
});
</script>
</body>
</html>
</html>

0 comments on commit 1a1f48a

Please sign in to comment.