jQuery $.ajax Not Working in IE8 but it works on FireFox & Chrome

前端 未结 6 2144
臣服心动
臣服心动 2020-12-17 01:58

I have the following ajax call which works perfectly in Firefox and Chrome but not IE:

function getAJAXdates( startDate, numberOfNights, opts ) {

    var mo         


        
6条回答
  •  心在旅途
    2020-12-17 02:39

    What if you simply type alert(data); or var myObject = eval('(' + data + ')'); ?

    And if you call the function directly from the browser by typing on the url bar your ajax call with all the parameters in "get" (¶m1=param1value¶m2=...)? You should be able to read the response.

    Something in JSON response is making IE crazy.

提交回复
热议问题