I've got the same problem with firefox. My web app works correctly on IE, but in firefox catch an exception like this:
uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILU RE) [nsIXMLHttpReque st.send]" nsresult: "0x80004005 (NS_ERROR_FAILU RE)" location: "JS frame :: file:///C:/Users/workspace/request.js :: sendRequest :: line 48" data: no]
Someone can help me?
Thanks in advance
Ale
uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILU RE) [nsIXMLHttpReque st.send]" nsresult: "0x80004005 (NS_ERROR_FAILU RE)" location: "JS frame :: file:///C:/Users/workspace/request.js :: sendRequest :: line 48" data: no]
Code:
# function sendRequest(url,params)
# {
# var http = getXMLHttp();
var response=null; http.open("GET",url,false); http.onreadystatechange=function() {
# if (http.readyState==4) {
# response = http.responseText;
# }
# };
# http.send();
# }
#
#
# function getXMLHttp() {
# var xmlhttp = null;
# if (window.ActiveXObject) {
# if(navigator.userAgent.toLowerCase().indexOf("msie5")!=-1) {
# xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
# } else {
# xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
# }
# }
# if(!xmlhttp&&typeof(XMLHttpRequest)!='undefined') {
# xmlhttp = new XMLHttpRequest();
# }
# return xmlhttp;
# }
Thanks in advance
Ale
Comment