I am trying to test Jquery ajax calls in Firefox but it it not working. I mean my server is not receiving any requests. But when I test in IE8 it works fine. Here is my ajax call:
$("#getWeatherReport").click(function(){ $cityName = "New York"; $.ajax({ type: "POST", dataType:"xml", url: "http://localhost:8080/Test/WeatherServlet", data: "cityName="+$cityName, success: function(data) { alert($("report", data).text()); }, error: function(xhr, textStatus, errorThrown) { alert('ERROR['+xhr.statusText+']'); } }); }); It is not even calling error function. And from my server code(java) I am setting content type as "text/xml". Any suggestions?