Using XDomainRequest Object in HTA application

323 views Asked by At

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 the previous link, i tried using XDomainRequest Object. But this is giving me error on xhr.open() method call; as i think the protocol for HTA application is file:; while XDomainRequest only supports ttp: and https: protocol.

Is there any workaround where i can get data using a cross domain call without intimating user on IE 8.

Thanks.

1

There are 1 answers

0
Dr.Molle On

It's not clear where the requested file is located at.

When it's accessible via HTTP/HTTPS(no matter which domain) you may use WinHTTPRequest