source: other-projects/FileTransfer-WebSocketPair/Themes/themebuilder/bin/phantomjs-1.9.2-windows/examples/movies.js@ 31525

Last change on this file since 31525 was 31525, checked in by ak19, 7 years ago

Nathan provided more stuff: Themes folder contains Sencha's Themebuilder which generates GXT Themes. It includes the .theme and generated .jar files for the project theme.

File size: 522 bytes
Line 
1// List movies from kids-in-mind.com
2
3var cbfunc = function (data) {
4 globaldata= data;
5 var list = data.query.results.movie;
6 list.forEach(function (item) {
7 console.log(item.title + ' [' + item.rating.MPAA.content + ']');
8 });
9 phantom.exit();
10};
11
12var el = document.createElement('script');
13el.src = 'http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20movies.kids-in-mind&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback=cbfunc';
14document.body.appendChild(el);
Note: See TracBrowser for help on using the repository browser.