Reputation: 16748
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");
});
Upvotes: 1
Views: 817
Reputation: 5277
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
Upvotes: 1
Reputation: 6510
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.
Upvotes: 4