xdomainrequest

Setting headers in XDomainRequest or ActiveXObject('Microsoft.XMLHTTP')

流过昼夜 提交于 2019-11-29 09:11:16
I'm trying to do something like this (W3 compliant, DOM): xhr.setRequestHeader( 'X-Requested-With', 'XMLHttpRequest' ); For ActiveXObject('Microsoft.XMLHTTP') and XDomainRequest (IE8). I'm having no such luck finding it anywhere in microsoft documentation or even google. Any idea how I can achieve this? Referring to this post http://blogs.msdn.com/b/ieinternals/archive/2010/05/13/xdomainrequest-restrictions-limitations-and-workarounds.aspx See the point three 3. No custom headers may be added to the request You cannot add custom headers to an XDR object. Hope this helps. 来源: https:/

AJAX cross-domain request IE 8+

大憨熊 提交于 2019-11-28 13:03:47
How to correct rewrite the Ajax request to make it work in IE 8 +, using XDomainRequest? $.ajax({ type: "GET", url: url, success: function(xml) { $('.post-msg').append(processXml(xml, config)); }, error: function(jqXhr, textStatus, errorThrown) { var errorMsg = "Request on url: " + url + " failed: " + textStatus + " error:" + errorThrown; alert(errorMsg); } }); Use this plugin for IE8-9 Xdomain support. https://github.com/MoonScript/jQuery-ajaxTransport-XDomainRequest 来源: https://stackoverflow.com/questions/17550248/ajax-cross-domain-request-ie-8

IE, XDomainRequest not always work

*爱你&永不变心* 提交于 2019-11-27 13:44:25
I am trying to do cross-domain on IE. I used XDomainRequest, and implanted logging for all events (onerror, onload, onprogress and ontimeout) to monitor the progress. It works sometime, but not always (one computer, IE9, same site, same request, 1 out of 3 or 4 works; another computer, IE8, maybe 1 out of 2 works). I didn't get any useful information from the logging, because there was nothing triggered. I am very confused. Any debugging tool for IE? Why some time XDomainRequest just doesn't work? Thanks a lot coronin There are at least two significant bugs in the XDomainRequest object, one

IE, XDomainRequest not always work

ぃ、小莉子 提交于 2019-11-26 16:28:48
问题 I am trying to do cross-domain on IE. I used XDomainRequest, and implanted logging for all events (onerror, onload, onprogress and ontimeout) to monitor the progress. It works sometime, but not always (one computer, IE9, same site, same request, 1 out of 3 or 4 works; another computer, IE8, maybe 1 out of 2 works). I didn't get any useful information from the logging, because there was nothing triggered. I am very confused. Any debugging tool for IE? Why some time XDomainRequest just doesn't

CORS with jQuery and XDomainRequest in IE8/9

孤者浪人 提交于 2019-11-26 04:08:01
问题 UPDATE: I highly recommend not investing any time in XDomainRequest, because it is a terribly poor implementation with many limitations. It basically only really works for GET requests to non-ssl servers, so you might as well use jsonp or whatever. I am using CORS to call a cross domain API, however Internet Explorer is giving issues. CORS should be possible in IE8 and IE9 through the XDomainRequest object, however I can\'t get things to work.. JQuery refuses to provide native support for