javascript - JQuery $.get in IE and Edge not firing -
in our web application want trigger locally run widget using xhttp request, in chrome , firefox, working fine , requests being received in ms browsers (edge , ie11) wort fire , error returned variable,
the request line is;
var screenrecorder = $.get('http://127.0.0.1:9645/widget?command=connect&agent=amtest&password=amtest'); where agentname , password taken js variables
[object,object] {readystate:1} i relying on correct response being received flag if widget running allow further communication requests it.
i hosting app on iis6.1 , have enabled cors still isn't helping ie , edge. can advise how can resolve this?
the ie console shows following error:
xmlhttprequest: network error 0x2efd, not complete operation due error 00002efd.
the fix issue initiate connection before sending request using following code before sending initial , subsequent $.get requests;
var screenrec = new xmlhttprequest('http://127.0.0.1:9645/widget'); this forces ie , egde open connection without $.get request not sent.
Comments
Post a Comment