jc758
13 years agoAdvisor
Json issue with ie 9 / FF 12 XP
Hi,
i'm currently updating our website to see if the current visitor is logged our community...
I make an api call with jquery, using jsonp to avoid cross domain restriction...
$.ajax({ url:"http://lithosphere.lithium.com/restapi/vc/authentication/sessions/login?xslt=json.xsl", Type:"GET" , dataType:"jsonp", success: function(data){ alert('$.ajax: ' + data.response.status); } });
or
$.getJSON("http://lithosphere.lithium.com/restapi/vc/authentication/sessions/login?xslt=json.xsl&callback=?", function(data){ alert('$.getJSON: ' + data.response.status); });
My problem is that it doesn't work neither on Firefox 12 on Windows XP nor on IE 9/Windows 7 (don't know if it is the same problem (charset for IE?))
if I call the url directly on my browser, i've got a success response, but calling the url with jquery , it always returns an error response (user authentication failed)...
Works fine on other browser (FF12 on windows 7, even IE 7 on XP ;) )
Does anybody has any ideas to fix this?
Thanx