Reputation: 1
The following ajax function call not retrive the data in firefox3.0.16 if i used post type,But it is working good in IE7 ,if i used get method i can retrive the data in both the Browser(IE and Firefox).Why?
function ABC() {
$.ajax({
type: 'post',
dataType: 'json',
url: Url,
success: XXX
})
};
Upvotes: 0
Views: 392
Reputation:
These problem occured when i host the application,in Local it work in both the browser
Upvotes: 0
Reputation: 11626
try adding "data:{}" & "contentType: "application/json; charset=utf-8"
Upvotes: 0
Reputation: 104178
Make sure you are returning the correct content-type header from the server. You will need "content-type: 'application/json'"
. Also make sure that JSON is properly formatted, although usually IE is more strict than Firefox.
Upvotes: 1