Put method not working in Google Chrome through AJAX

后端 未结 1 1892
太阳男子
太阳男子 2021-01-29 03:20

I have this working fine in Mozilla and IE but for some reason not chrome. In chrome, the error callback executes every time returning an error code of zero. Lots of articles on

相关标签:
1条回答
  • 2021-01-29 03:31

    So Eugene and OhgodWhy were correct. Chrome does have support for the "put" method in the XMLHTTPRequest object!

    Solution

    The problem I was experiencing went away when I stopped using the "submit" event to transmit my form data, and instead relied on the "click" event. This took care of some other issues I was having where after submit chrome would append the form variables to the current URL. This could probably have also been solved by using event.preventDefault.

    0 讨论(0)
提交回复
热议问题