WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 new xloadtree.js file damaged function, Micha Schopman, June 18, 2003
     Re:new xloadtree.js file damaged function , Micha Schopman, June 18, 2003
         Re:new xloadtree.js file damaged function , Erik Arvidsson, June 18, 2003
     Re:new xloadtree.js file damaged function , Micha Schopman, June 18, 2003
     Re:new xloadtree.js file damaged function, Erik Arvidsson, June 18, 2003

Subject: Re:new xloadtree.js file damaged function From: Erik Arvidsson Date: June 18, 2003
I wasn't sure myself so therefore I downloaded 1.1 to see if the xmlNode property was there and it wasn't. I know I've written several posts recommending to add the xmlNode but it has never been an official property.

I hope v2 will solve the issue that binding xmlNode has in IE (leaks memory).

erik

--------------------------------------------------------

I just compared the 2 xloadtree.js files, I found it. However I never made changes to the xloadtree.js so this is kinda mysterious :)
The difference is the last part of this function "jsNode.xmlNode = oNode;"
// Converts an xml tree to a js tree. See article about xml tree format
function _xmlTreeToJsTree(oNode) {
// retreive attributes
var text = oNode.getAttribute("text");
var action = oNode.getAttribute("action");
var parent = null;
var icon = oNode.getAttribute("icon");
var openIcon = oNode.getAttribute("openIcon");
var src = oNode.getAttribute("src");

// create jsNode
var jsNode;
if (src != null && src != "")
jsNode = new WebFXLoadTreeItem(text, src, action, parent, icon, openIcon);
else
jsNode = new WebFXTreeItem(text, action, parent, icon, openIcon);

// go through childNOdes
var cs = oNode.childNodes;
var l = cs.length;
for (var i = 0; i < l; i++) {
if (cs[i].tagName == "tree")
jsNode.add( _xmlTreeToJsTree(cs[i]), true );
}
jsNode.xmlNode = oNode;
return jsNode;
}

From: Micha Schopman
Sent: June 18, 2003
Subject: Re:new xloadtree.js file damaged function

I just downloaded the xtree with the target updates, to be updated. Normally I use the following line to check if the selected node is the root. The node has to be declared static, so it has no XML nodes. On a normal node this line returns true.
With the new xloadtree.js this functionality does not work, I then overwritten the new xloadtree.js with an older one, and it works again. Maybe something damaged with the new target update?
tree.getSelected().xmlNode







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