Team:UCLondon/Templates/Navigationv3

From 2012e.igem.org

(Difference between revisions)
Line 347: Line 347:
         $('#yt').html('');
         $('#yt').html('');
-
       var _url = 'http://gdata.youtube.com/feeds/api/playlists/PLtGCURRfxampHgpkl-tUkzSeZhItvY3_u?v=2&alt=json&callback=?';
+
       var _pURL = 'http://gdata.youtube.com/feeds/api/playlists/PLtGCURRfxampHgpkl-tUkzSeZhItvY3_u?v=2&alt=json&callback=?';
    
    
-
       $.getJSON(_url,function(data){
+
       $.getJSON(_pURL,function(plists){
-
           alert(data.feed.entry.length);
+
           alert(plists.feed.entry.length);
     });
     });
}
}

Revision as of 21:22, 14 October 2012