Search the web
Sign In
New User? Sign Up
tree_menu · Morten's JavaScript Tree Menu

Group Information

  • Members: 234
  • Category: JavaScript
  • Founded: Mar 24, 1999
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

  Messages Help
Advanced
Fwd: Re: [tree_menu] IE new window bug   Message List  
Reply Message #1683 of 2419 |
Morten,
 
Thanks for the help on this one. I spend some time over the weekend investigating the problem and found a workaround, which was very suitable for my case. As you know, the main problem about the menu rewrite after each interaction lies on the download of the menu images, which happens because IE ignores the images it has on cache. This behavior doen't take place on netscape 7 for instance. Well, IE ignores its cache because the web server didn't send an expire date along with the images, so I reconfigured my web-server to send an expire date which is the access date plus one month. This way, IE doesn't reload the images after they are on it's cache.
I browsed some example sites that have used the treemenu and noticed that none are doing this. Hope they can benefit from this one.
 
Vicente

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!

Tue Jul 1, 2003 12:40 am

vicente_verto
Offline Offline
Send Email Send Email

Message #1683 of 2419 |
Expand Messages Author Sort by Date

Morten, Thanks for the help on this one. I spend some time over the weekend investigating the problem and found a workaround, which was very suitable for my...
Vicente Domingues
vicente_verto Offline Send Email
Jul 1, 2003
12:40 am
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help