JQuery external Ajax call not working in IE

后端 未结 7 2106
梦毁少年i
梦毁少年i 2020-12-21 21:37

I have an ajax script that sends some data to an external URL. The external URL is hosted on the same server, however the domain is different than the source of the ajax cal

7条回答
  •  滥情空心
    2020-12-21 22:19

    you should add a

    callback=?
    

    to your url and handle this on the server side.

    I did this once for a java servlet, and when the callback param was included I added an extra pair of parenteses around the json response..

    hope it helps!

提交回复
热议问题