Ask questions and get good answers on mb.jQuery.components

What's the difference between using dataType "json" and dataType "jsonp?

Why should I add "?Callback=?" to the end of my URL to specify the callback?

I use type is set to only GET or POST and GET?

On the documentation it says that I should set even something server side, what should I do?

asked Nov 19 '09 at 22:47

Federico%20Soldani's gravatar image

Federico Soldani
173128


You can use json datatype if you ar retiving data from the same domain, otherwise, the cross domain ajax data retriving needs the JSONP (JSON with padding) protocol that must be accepted by the called server. Here are articles on how to allow the JSONP requests on your server:

answered Nov 23 '09 at 22:56

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

Your answer
toggle preview

jQuery main site - Matteo Bicocchi