ie7
programmatically created tree doesn't show up in IE7 - FF works fine
Posted March 17th, 2008 by stiggiI have a problem with a dynamic created tree.
First I want to decribe the background:
I am using Dojo v.1.0.2. The tree is created dynamically, the data is hold by an ItemFileReadStore. So, the mainpage loads content via rawXhrPost, the Javascript is extracted from the response and executed. There are four ItemFileReadStores which were built.
So, depending on a navigation item the tree is created dynamically with one of the four stores.
The Problem: it doesn't show up in IE7. It works fine in Firefox. IE7 seems to need a lot of time to build the tree.
The Stores are correct formatted (i.e. no "," at the end) - there are no errors in IE7.
My code:if (dijit.byId("tree")) {
dijit.byId("tree").destroy();
}
}
function changetree( storeName ) {
destroyTree();
var newStore = dojo.getObject(storeName);
if (!newStore) {alert('No Store!');}else {
var newTree = new dijit.Tree( {
store:newStore,
getLabelClass:getCustomLabelClass,
onClick:openLink,
id:"tree" }, document.createElement("div"));
dojo.byId("treeContainer").appendChild(newTree.domNode);
}
}
Is there any other option to rebuild the tree than destroy it first and build it again?
Is there any known problem with IE7?
Thanks in advance for your help,
Best regards,
Micha aka Stiggi
Dojo Forum