开发者

jQuery: JSON callback function never reached

开发者 https://www.devze.com 2023-02-16 05:11 出处:网络
开发者_Python百科I\'m requesting a page via JSON but never reach the callback-function. Does someone know why this is happening?

开发者_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

精彩评论

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