It works fine on my servers and on my clients servers, but on their login machines it throws an error when opening.
The error is a TypeCast error.
Is this an issue with a IE 8 security setting?
function CrossDomainMessage(ExecuteExternalWebServiceClass, EndpointAddress, PostData) {
this.ExecuteExternalWebServiceClass = ExecuteExternalWebServiceClass;
this.xdr = new XDomainRequest();
XDomainRequest.prototype.CrossDomainMessage = this;
this.CrossDomainMessageLoaded = function () {
this.CrossDomainMessage.ExecuteExternalWebServiceClass.MessageReady(this.CrossDomainMessage.xdr.responseText);
}
this.CrossDomainMessageError = function () {
this.CrossDomainMessage.ExecuteExternalWebServiceClass.MessageError();
}
this.CrossDomainMessageTimeout = function () {
this.CrossDomainMessage.ExecuteExternalWebServiceClass.MessageTimeout();
}
alert("About to Open with POST");
try {
this.xdr.open("POST", EndpointAddress);
} catch (err) {
alert(err); // Why is there an error here.
}
this.xdr.timeout = 2000;
this.xdr.ontimeout = this.CrossDomainMessageTimeout;
this.xdr.onerror = this.CrossDomainMessageError;
this.xdr.onload = this.CrossDomainMessageLoaded;
this.xdr.send(PostData);
}
tsdnz
0 Points
2 Posts
XDomainRequest - Not opening on clients machine
May 07, 2012 04:48 AM|LINK
Hi, my class is below.
It works fine on my servers and on my clients servers, but on their login machines it throws an error when opening.
The error is a TypeCast error.
Is this an issue with a IE 8 security setting?
function CrossDomainMessage(ExecuteExternalWebServiceClass, EndpointAddress, PostData) { this.ExecuteExternalWebServiceClass = ExecuteExternalWebServiceClass; this.xdr = new XDomainRequest(); XDomainRequest.prototype.CrossDomainMessage = this; this.CrossDomainMessageLoaded = function () { this.CrossDomainMessage.ExecuteExternalWebServiceClass.MessageReady(this.CrossDomainMessage.xdr.responseText); } this.CrossDomainMessageError = function () { this.CrossDomainMessage.ExecuteExternalWebServiceClass.MessageError(); } this.CrossDomainMessageTimeout = function () { this.CrossDomainMessage.ExecuteExternalWebServiceClass.MessageTimeout(); } alert("About to Open with POST"); try { this.xdr.open("POST", EndpointAddress); } catch (err) { alert(err); // Why is there an error here. } this.xdr.timeout = 2000; this.xdr.ontimeout = this.CrossDomainMessageTimeout; this.xdr.onerror = this.CrossDomainMessageError; this.xdr.onload = this.CrossDomainMessageLoaded; this.xdr.send(PostData); }Song-Tian - ...
All-Star
43705 Points
4304 Posts
Microsoft
Re: XDomainRequest - Not opening on clients machine
May 08, 2012 09:01 AM|LINK
Hi,
Please post more code of that. So I may reproduce on my side.
Feedback to us
Develop and promote your apps in Windows Store
tsdnz
0 Points
2 Posts
Re: XDomainRequest - Not opening on clients machine
May 08, 2012 09:13 AM|LINK
Hi, no more code to show.
Do you know of any IE security settings that could stop it from opening?
Song-Tian - ...
All-Star
43705 Points
4304 Posts
Microsoft
Re: XDomainRequest - Not opening on clients machine
May 09, 2012 08:08 AM|LINK
Hi,
I think javascript couldn't do that.
Feedback to us
Develop and promote your apps in Windows Store