开发者

Calling flickr api using jquery ajax - IE Dilemma

开发者 https://www.devze.com 2023-04-03 03:44 出处:网络
wondering if anyone can help me out. I\'m trying to call the flickr api. I\'m using the following code, which works great in everything but Internet Explorer. Does anyone have any idea where I\'m goin

wondering if anyone can help me out. I'm trying to call the flickr api. I'm using the following code, which works great in everything but Internet Explorer. Does anyone have any idea where I'm going wrong? It's not even making the network call.

get_service_base : function(){
        return "http://api.flickr.com/services/rest/?method";
    },
    get_api_key : function(){
        return "api_key=1234567890-myapikey";
    },

    get_photoset : function (id, callback)
    {
    var base_url =this.get_service_base()+'=flickr.photosets.getPhotos&'+this.get_api_key()+'&photoset_id='+id+'&format=json&nojsoncallbac开发者_C百科k=1';
    jQuery.getJSON(base_url,{}, function(data)
    {
        callback(data);
    });

Any help mucu appreciated


could not get this working in IE 8 - so ending up using a callback and all was good

Changed URL to return "http://api.flickr.com/services/rest/?jsoncallback=?&method";

And took out nojsoncallback=1

0

精彩评论

暂无评论...
验证码 换一张
取 消