jQuery+;谷歌API+;IE8错误

jQuery+;谷歌API+;IE8错误,jquery,ajax,api,internet-explorer-8,gdata,Jquery,Ajax,Api,Internet Explorer 8,Gdata,以下功能在我们的生产站点上运行良好 function flickrGetPhotos(){ $.getJSON("http://api.flickr.com/services/rest/?method=flickr.photosets.getList&api_key=" + flickrApiKey + "&user_id=" + flickrUserId + "&format=json" + "&per_page=" + galeriaSetsPerPage

以下功能在我们的生产站点上运行良好

function flickrGetPhotos(){
  $.getJSON("http://api.flickr.com/services/rest/?method=flickr.photosets.getList&api_key=" + flickrApiKey + "&user_id=" + flickrUserId + "&format=json" + "&per_page=" + galeriaSetsPerPage + "&jsoncallback=?", 
  function(data){
    flickrBuildCollection(data.photosets.photoset)
  })
} 
然而,这一功能并不适用。它只适用于IE8的本地测试(在本地和远程的每个浏览器中都可以正常工作):

正如您所看到的,这两个函数之间唯一显著的区别是一个调用Flickr API,另一个调用gdata.youtube API

IE抱怨jQuery1.4.2库中处理远程调用的第5113行。当我将第二个函数更改为从GDATA/Google以外的API/服务器请求数据时,它会停止比较


您对此有何想法?

您可能需要
callback=?
参数才能启动jQuery回调方法。

是的,我刚刚注意到了这一点,并回来发布答案。但是你跑得更快。无论如何谢谢你!
function ytGetVideos(){
  jQuery.getJSON("http://gdata.youtube.com/feeds/api/users/" + globalYtUser + "/uploads?v=2&alt=jsonc", 
  function(data){
    buildEmbeddedElem(data.data.items[0].id);
  })
}