Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript json + jquery + youtube playlist.

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #28338
    vezzo
    Member

    I’m really struggling with that.
    I’m using jquery to parse a youtube json file containing the element of a playlist.
    by now all I wanna do is get an alert for each video in the playlist containing the video id.

    here is the code:

    Code:
    $(document).ready(function() {
    $.getJSON(‘http://gdata.youtube.com/feeds/api/playlists/2D9CAD13837D67EE?&v=2&alt=jsonc&callback=?’,function(data) {
    $.each(data.items, function(i,item){
    alert( ” + item.video.id + ”);

    if ( i == 10 ) return false;
    console.log();
    });
    });
    });

    through firebug seems that the json file is opened correctly, but the parsing give me no results…
    any help?

    thanks

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.