WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Bug in xLoadtree, Sascha Hofmann, February 13, 2002
     Re:Bug in xLoadtree, Erik Arvidsson, February 13, 2002

Subject: Re:Bug in xLoadtree From: Erik Arvidsson Date: February 13, 2002

This is a bug in xTree and not in XLoadTree but we are still thankful that you told us about this bug. This should be fixed in the next update.

erik

From: Sascha Hofmann
Sent: Feburary 13, 2002
Subject: Re:Bug in xLoadtree

Hi,

 

When removing the last "WebFXTreeItem" from a "WebFXTree" a javascript error occurs. The plus- and minus-icons thar are set on removal are only available for the "WebFXTreeItems" and not for a "WebFXTree".

I've channged the code to allow manipulation of plus- and minus-icons only if the parentNode has a parentNode. In other words if it is not the root.

<code>

WebFXTreeItem.prototype.remove = function() {

  ...

  if ( this.parentNode.parentNode )
  { iconSrc = document.getElementById(prevSibling.id + '-plus').src;
   iconSrc = iconSrc.replace('minus', '').replace('plus', '');
   document.getElementById(prevSibling.id + '-plus').src = iconSrc;
  }

  ...

</code>

 





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