Closed
Description
URL: http://api.jquery.com/jQuery.ajax/
- An error description for dataType
Actually cross-domain"json"
requests will be not converted to"jsonp"
. - JavaScript code
// the url of current page is
// http://www.a.com
// then send a request
// http://www.b.com/search.php support jsonp
$.ajax({
url: "http://www.b.com/search.php?callback=?",
data: {
// ...
},
dataType: "json"
});
This request will be auto converted to "jsonp"
. Write this feature on jQuery document that will be good for users. I think this way is more useful than dataType: "jsonp"
occasionally.
Metadata
Metadata
Assignees
Labels
No labels