Hedge
Hedge

Reputation: 16748

jQuery: JSON callback function never reached

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

Answers (2)

Andrew
Andrew

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

Munim
Munim

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

Related Questions