WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 XLoadTree - Dynamic XML not loading , debreynr, October 9, 2003
     Re:XLoadTree - Dynamic XML not loading , Erik Arvidsson, October 9, 2003
         Re:XLoadTree - Dynamic XML not loading , debreynr, November 3, 2003

Subject: XLoadTree - Dynamic XML not loading From: debreynr Date: October 9, 2003

Hi folks

I found the problem why XLoadTree doesn't load dynamically created XML.
The problem is with the Microsoft.XMLHttp. I doesn't seem to load the XML
properly if it's not a static file. My workaround is in xloadtree.js function _startLoadXmlTree
and it goes like this:

function _startLoadXmlTree(sSrc, jsNode) {
 if (jsNode.loading || jsNode.loaded)
  return;
 jsNode.loading = true;
 var xmlHttp = XmlHttp.create();
 var xmlHttp = new ActiveXObject("Microsoft.XMLDOM");
 xmlHttp.async="false";
 xmlHttp.onreadystatechange = function () {
  if (xmlHttp.readyState == 4) {
   _xmlFileLoaded(xmlHttp, jsNode);
  }
 };
 xmlHttp.load(sSrc);
}

I think this will only work in IE 5.5 & 6.

Rich




Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX