:: Forum >>

Fix for duplicate tree nodes bug in FF 1.0.x

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(element, html){
     var range = element.ownerDocument.createRange();
     range.setStartBefore(element);
     var fragment = range.createContextualFragment(html);
     element.parentNode.insertBefore(fragment, element);
     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 support forum

Forum search