:: Forum >> Version 2 >>

Fix for duplicate tree nodes bug in FF 1.0.x

More information on this topic is available in the documentation section: /aw.ui.tree/.

Here is the patch which seems correcting AW 2.0 problem in Firefox 1.0.x where tree nodes get duplicated on expand/collapse.

if (AW.gecko){
    
AW.setOuterHTML = function(elementhtml){
       var 
range element.ownerDocument.createRange();
       
range.setStartBefore(element);
       var 
fragment range.createContextualFragment(html);
       
element.parentNode.insertBefore(fragmentelement);
       
element.parentNode.removeChild(element);
    };
}
 
If you are using AW 2.0 tree control and have to support Firefox 1.0.x - add this code to the end of aw.js file.
Alex (ActiveWidgets)
Thursday, March 23, 2006
Thank you.
Works fine for me!
ralf
Thursday, March 23, 2006



This topic is archived.

Back to /aw.ui.tree/

Documentation:

Forum search