开发者

jQuery: JSON callback function never reached

开发者_Python百科I'm requesting a page via JSON but never reach the callback-function. Does someone know why this is happening?

jQuery.getJSON("'. $dnd_fileupload_dir .'dnd-medialink.php?format=json&jsoncallback=?", function(data){  
    alert("lalala");
});


Use firebug to see what's going on. Either the request URI is incorrect and there is a 400 error, or the response is not valid JSON.


I would suggest downloading fiddler tool and using it to watch what is sent over http. A simple search on google will get you to the fiddler website

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜