Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function enviaDados(dado){
- $.ajax({
- url: 'http://192.168.1.111:80',
- data: { '': dado},
- dataType: 'jsonp',
- crossDomain: true,
- jsonp: false,
- jsonpCallback: 'jsonFlickrFeed',
- success: function(d) {
- $('#title').text(d.title);
- var i, l = d.items.length, newLi, newItem;
- $('<ul id="photoList"></ul>').appendTo('#main');
- for (i = 0; i < l; i++) {
- newLi = $('<li></li>');
- newItem = d.items[i];
- $('<h2>'+newItem.title+'</h2>').appendTo(newLi);
- $(newItem.description).appendTo(newLi);
- newLi.appendTo('#photoList');
- }
- }
- });
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement