|
JQuery Ajax call not working in IE...
Hello All -
I'm making an ajax call that works fine in FF and Safari, but IE9 is another situation.
On my test server it works fine with IE9, but not in the production server with IE9.
The jQuery code looks like this:
$.get(
"http://" + webServiceLoc + "Roster/Hello",
"",
function (data) { alert(data); },
"json"
);
My web service is simple:
in the interface:
[OperationContract]
[WebGet(UriTemplate="Hello", ResponseFormat=WebMessageFormat.Json)]
[Description("Return string Hello!!!")]
string SayHello();
and class:
public string SayHello()
{
return "Hello!!!";
}
so I think it has something to do with the mime types, as it is working with one server and not another (and thru Googling similar posts), but I don't know enough about setting them.
Any ideas?
Thanks!
|