TreeViiew: Collapsing a node affect the nest most adjasant sibling node, make it not clickable

J

john

If a node has children, expand it, then collapse it again, then the attributes of the next most adjacent sibling node is affected, that node had 'mousehover= hand' attribute, and was clickable before, but now it no longer has the hand mouse and not clickable.

I checked the javascript code, and found nothing wrong in logic. I doubt this is a bug in IE DOM modal.

Has anyone met this problem?
 
J

john

by the way, this treeview is from MS Advancedwebcontrols, not the IE webcontrols
If a node has children, expand it, then collapse it again, then the attributes of the next most adjacent sibling node is affected, that node had 'mousehover= hand' attribute, and was clickable before, but now it no longer has the hand mouse and not clickable.

I checked the javascript code, and found nothing wrong in logic. I doubt this is a bug in IE DOM modal.

Has anyone met this problem?
 
J

john

Here is the code

// Change main image to Plus icon
obj.children[0].src = tree.collapsedNodeImageUrl;

// Set image URL
if (obj.parentNode.children.length > 1)
obj.parentNode.children[1].src = obj.imageUrl;

// Hide children
for (i = 0; i < tnodeid.children.length; i++) {
tnodeid.children.style.display = 'none';
} // this loop caused the problem


by the way, this treeview is from MS Advancedwebcontrols, not the IE webcontrols
If a node has children, expand it, then collapse it again, then the attributes of the next most adjacent sibling node is affected, that node had 'mousehover= hand' attribute, and was clickable before, but now it no longer has the hand mouse and not clickable.

I checked the javascript code, and found nothing wrong in logic. I doubt this is a bug in IE DOM modal.

Has anyone met this problem?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top