Morten Wang <morten@...> wrote:
To: tree_menu@yahoogroups.com
From: Morten Wang
Date: Sun, 29 Jun 2003 17:46:06 +0200
Subject: Re: [tree_menu] IE new window bug
At 16:06 24.06.2003 +0000, you wrote:
>I am facing a weird problem only with IE. When I trigger a new window
>from the treemenu or the main frame, the next time I click on the
>menu, all the images get reloaded. I noticed the same problem on the
>demonstration page at www.treemenu.com, that is, if a menu link is
>opened with a rigth button mouse click on a new browser window, the
>next time the menu is acessed, it gets reloaded.
I believe this is a result of how the menu rewrites parts of the menu frame
(and thereby the menu) upon each interaction with it. For IE5+ (and
Mozilla) it simply does a deleteRow() to delete all but one row of the menu
table, and then repopulates it with insertRow() and insertCell(). The
contents of the cells are inserted as raw HTML through .innerHTML and left
for the browser to parse, and it seems that they aren't all too happy about
this. I believe it might be better to use cloneNode() or other DOM methods
to copy the relevant parts of the document, but I haven't yet found the
time to research into this.
--
Morten Wang -- Author & maintainer, Morten's JavaScript Tree Menu
http://www.treemenu.com/
FAQ: http://www.treemenu.com/support/faq.shtml
To unsubscribe from tree_menu either visit the Yahoo! Groups web site
or email tree_menu-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!