Skip to content

Commit

Permalink
Use of dataType: 'jsonp' also for YouTube
Browse files Browse the repository at this point in the history
  • Loading branch information
mgiulio committed Jun 15, 2011
1 parent 0f2b3a4 commit ea8bf3c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions jquery.lifestream.js
Original file line number Diff line number Diff line change
Expand Up @@ -709,12 +709,10 @@
}

$.ajax({
url: "http://gdata.youtube.com/feeds/api/users/" + obj.user
url: "http://gdata.youtube.com/feeds/api/users/" + obj.user
+ "/favorites?v=2&alt=jsonc",
dataType: 'jsonp',
success: function(data) {
if (typeof data === "string") {
data = $.parseJSON(data);
}
callback(parseYoutube(data));
}
});
Expand Down

0 comments on commit ea8bf3c

Please sign in to comment.