Team:UCLondon/Templates/Navigationv3

From 2012e.igem.org

(Difference between revisions)
Line 416: Line 416:
       var _pURL = 'https://gdata.youtube.com/feeds/api/playlists/PLtGCURRfxampHgpkl-tUkzSeZhItvY3_u?v=2&alt=json';
       var _pURL = 'https://gdata.youtube.com/feeds/api/playlists/PLtGCURRfxampHgpkl-tUkzSeZhItvY3_u?v=2&alt=json';
        
        
-
       $.getJSON(_pURL, { }, function(plists){
+
       $.ajax({
-
          alert(plists.feed.entry.length);
+
                url:        _pURL,
-
    });
+
                dataType:  "jsonp", // <== JSON-P request
 +
                success:    function(data){
 +
                    alert(data);
 +
                }
 +
    });
}
}

Revision as of 20:25, 15 October 2012