Questions tagged [xdomainrequest]

The XDomainRequest object is implemented in Internet Explorer 8–10 and can be used to do cross-domain asynchronous requests and it also has support for streaming the content.

The XDomainRequest object was implemented in IE8 and can be used to do cross-domain asynchronous requests. It also has support for streaming the content.

Eric Law has explained its use in an IEInternals blog post: COMET Streaming in Internet Explorer

122 questions
1
vote
0 answers

How to format data for XDomainRequest

I need to post data to a cross origin web service using json. This works perfectly in ie10+ but not in ie8/9. After researching i discovered i need to use XDomainRequest but am unsure how to format the data. For example, can i just wrap a string…
Druubacca
  • 1,115
  • 1
  • 7
  • 4
1
vote
0 answers

Is XDomainRequest slower than XMLHttpRequest?

I am running a simple test to measure download speed using JS only. The script uses an HTTP request to download a file from a different server (which allows cross-domain requests). Everything works beautifully in modern browsers using…
1
vote
1 answer

ServiceStack XDomainRequest and Missing Content-Type header

When I make a XDomainRequest on IE8/9 the Content-Type is not set, in fact Content-Type is missing from the HTTP Header. This is how IE XDomainRequest works. On the backend, how do I tell Servicestack to treat all incoming requests that do not have…
1
vote
1 answer

Agnostic scheme / protocol ajax call

I would like to do an ajax call that adapts to current scheme (http/https). What would be a really valid approach to this situation (both to xhr and xdr)? var xhr = new XMLHttpRequest(); // Or var xdr = new XDomainRequest ... xhr.open("get",…
Paulo Coghi
  • 13,724
  • 14
  • 68
  • 90
1
vote
1 answer

Access denied with IE's XDomainRequest open("get",url)

IE suddenly started throwing this "Access is denied" error with XDomainRequest and I can't figure out what the hell is going on. Here's what I have: if ($.browser.msie && window.XDomainRequest) { // Use Microsoft XDR var xdr = new…
1
vote
0 answers

XDomainRequest performance issue while receiving base64 image

I have two applications. One of them is an HTML based web application which works in IE9 mode and which receives scanned documents' images in base64 string format via XDomainRequest. The other application is a Windows service written in C#. It…
Orkun Bekar
  • 1,447
  • 1
  • 15
  • 36
1
vote
1 answer

XDomainRequest onLoad not firing correctly in IE8

I'm firing off a request to the google geocode api to get the latitude and longitude of a given postcode. This works fine in all browsers bar IE8 (shock!). To get around this i've implemented XDomainRequest for IE. /* Convert postcode to…
woolm110
  • 1,194
  • 17
  • 27
1
vote
1 answer

Using XDomainRequest Object in HTA application

I have an HTA aplication, which gets some data using through ajax call. I satrted to use XMLHttpRequest for this. This method was giving me the desired result, but it was coming with a pop up before sending a request as shown here. So as suggeted in…
1
vote
2 answers

IE 8+ XDomainRequest 'POST' not working with WebAPI

I have search on googled but no success to achieve the solution My Code is var xdr = new XDomainRequest(); if (xdr) { $.support.cors = true; xdr.open(method, svcUrl, true); xdr.onload = function () { var result =…
Amit
  • 15,217
  • 8
  • 46
  • 68
1
vote
0 answers

Ajax Post returning 500 error ie8 and ie9

I have gone through every stackoverflow post about this but still can't figure out why its not working. I have a simple jquery ajax post that works everywhere except ie8 and ie9. The server is asp.Net Index.html has:
im_benton
  • 2,541
  • 4
  • 21
  • 30
1
vote
0 answers

Why is XDomainRequest Not Working In IE8 or IE9

Below is an XDomainRequest being made from javascript to a PHP Backend on Nginx on a different subdomain. The return result always executes the error function, and XDomainRequest doesn't give debugging details. Is there something wrong with the…
Devin Dixon
  • 11,553
  • 24
  • 86
  • 167
1
vote
1 answer

Ajax GET request not working in IE 8 and 9

I've tried everything under the sun and can't get this working. Trying to get a simple GET request cross domains in IE 8+9.. works fine in Chrome and Firefox and IE10. Tried using XDomainRequest but no dice.. get undefined error. function…
1
vote
1 answer

IE XdomainRequest CORS issue

I'm having an issue with IE (only IE8+, Chrome works just fine) where when I try to post information to another page on my website I get an error saying that "Origin http://localhost:7230 not found in Access-Control-Allow-Origin header". I…
amura.cxg
  • 2,348
  • 3
  • 21
  • 44
1
vote
1 answer

AJAX cross-domain request IE 8+

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,…
Geray Suinov
  • 3,521
  • 3
  • 16
  • 19
1
vote
0 answers

Make Rails parse JSON from XDR Cross-Domain requests with content-type: nil

I'm building a client side application which cross-domain posts JSON, using CORS, to a Rails 3.2 application on a different server. Unfortunately, we need to support IE9, which means that we're falling back to using XDomainRequest (XDR) to send our…
1 2 3
8 9