How do I specify more arguments to be passed to a jsonp callback function?
For example, I\'m trying to grab youtube video data:
http://gdata.youtube.
better way is specify an associated array of divId and videoId like this
var arr = { 'gzDS-Kfd5XQ': 'divId_1', 'gwWS-Gasfdw': 'divId_2' };
and in callback function get your divId by videoId
function youtubFeedCallback(data) { var divId = arr[data.entry.media$group.yt$videoid.$t]; }