For example, I use the $. Ajax()
method to request data. It works normally in modern browsers, but under IE 8, there will be an error: no transport
It is learned from stackoverflow that this problem occurs because * * IE 8 does not support cross origin restore share XHR * * requests, so it is not possible to request data across domains through native XHR or $. Ajax()
IE 8 implements its own set of methods: xdomainrequest
So I tried Google – “jQuery is compatible with IE 8 xdomainrequest”, and found a plug-in: jquery.xdomainrequest.min.js. Click download and directly reference it in the page to solve the problem (only IE8 and IE9 are supported)
Similar Posts:
- JQuery Ajax crossdomain cannot be used in IE [How to Solve]
- When parsing background JSON data with Ajax: unexpected token o in JSON at position 1
- [Solved] Jquery ajax “Uncaught TypeError: Illegal invocation”
- When using bootstrap modal box, uncaught typeerror: $(…). Modal is not a function
- [reprint] extjs sets the timeout of Ajax request
- [Solved] JS Ajax uploads an error “uncaught type error: illegal invocation”
- Forbidden (CSRF token missing or incorrect.):
- [Solved] Uncaught syntax error: invalid regular expression flags
- Error in JS function referencing public page [How to Solve]
- [Solved] ValueError: check_hostname requires server_hostname