sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 39924 - http://anonsvn.icesoft.org/repo / bridge-support / patches / icefaces-ee-3.3.0.GA-Fedex / src / main / javascript / http.js
Unified Diff View - http.js
/bridge-support/patches/icefaces-ee-3.3.0.GA-Fedex/src/main/javascript/http.js @ revision 39923
/bridge-support/patches/icefaces-ee-3.3.0.GA-Fedex/src/main/javascript/http.js @ revision 39924
@@ -246,7 +246,22 @@         });         method(contentAsDOM, function(self) { -            return nativeRequestResponse.responseXML; +            try { +                return nativeRequestResponse.responseXML; +            } catch (e) { +                var txt = '<error>' + e + '</error>'; +                var doc; +                if (window.DOMParser) { +                    var parser = new DOMParser(); +                    doc = parser.parseFromString(txt,"text/xml"); +                } else { +                    doc = new ActiveXObject("Microsoft.XMLDOM"); +                    doc.async = false; +                    doc.loadXML(txt); +                } + +                return doc; +            }         });         method(asString, function(self) {


feed icon

sventon 2.5.1