$.ajax post working in Chrome, but not in Firefox

后端 未结 3 1657
清歌不尽
清歌不尽 2020-12-06 05:12

Okay, I\'ll be short. I have this script which is putting values in database. It\'s working perfect in Chrome, Safari, but can\'t make it work in Firefox or IE. It seems tha

3条回答
  •  醉梦人生
    2020-12-06 06:06

    Async call might not work in FF if you it triggered on form submission. You can add async:false to your ajax call and it will work. It is either that or the fact that you have cross domain call that you will have to fix through CORS.

提交回复
热议问题