Javascript menu leaks memory

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Javascript menu leaks memory

    We've implemented a hierarchical menu on our web site using Fireworks, but its javascript is leaking memory in IE 6 and other browers on each page refresh.

    We're aware that IE 5/6 has some known memory leak issues regarding dynamic HTML, but we also know that the javascript can be fixed somehow to prevent these leaks.

    Does anyone know how to repair Firework-generated menu javascript to prevent these memory leaks?



    djvalles@yahoo.com webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. #40029 [NEW]: Memory leaks
      From: jan at horde dot org Operating system: Linux PHP version: 4.4.5RC1 PHP Bug Type: Unknown/Other Function Bug...
    2. #26267 [Opn->Ver]: Memory Leaks
      ID: 26267 Updated by: sniper@php.net Reported By: cunha17 at uol dot com dot br -Status: Open +Status: ...
    3. #26000 [Fbk->Bgs]: much memory leaks
      ID: 26000 Updated by: sniper@php.net Reported By: k.schroeder@php.net -Status: Feedback +Status: ...
    4. #26000 [NEW]: much memory leaks
      From: k.schroeder@php.net Operating system: Linux PHP version: 5CVS-2003-10-27 (dev) PHP Bug Type: Apache related Bug...
    5. how do I use the memory inspector to check for memory leaks
      Hi there, prevoiusly somebody had told me that my code might be causing a memory leak. He then said that I can use the memory inspector to watch...
  3. #2

    Default Re: Javascript menu leaks memory

    Memory leaks aside, there are several other serious problems with these
    menus. I cannot in conscience recommend them to anyone, especially
    considering that there are much better ways to do these menus that have none
    of the problems. Need links to them?

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "djvalles@yahoo.com" <webforumsuser@macromedia.com> wrote in message
    news:blhi4d$bkf$1@forums.macromedia.com...
    > We've implemented a hierarchical menu on our web site using Fireworks, but
    its javascript is leaking memory in IE 6 and other browers on each page
    refresh.
    >
    > We're aware that IE 5/6 has some known memory leak issues regarding
    dynamic HTML, but we also know that the javascript can be fixed somehow to
    prevent these leaks.
    >
    > Does anyone know how to repair Firework-generated menu javascript to
    prevent these memory leaks?
    >
    >

    Murray *TMM* Guest

  4. #3

    Default Re: Javascript menu leaks memory

    Yes, please send me the links.

    However, if you do know how to correct the memory leak, please tell me - I'm familiar with JS, there's just a lot in there.

    Thanks.



    djvalles@yahoo.com webforumsuser@macromedia.com Guest

  5. #4

    Default Re: Javascript menu leaks memory

    I couldn't begin to tell you how to fix leaks - in fact I'm taking your word
    that they are there. I have never noticed any.

    [url]http://www.projectseven.com/tutorials/menuing/mcloser/index.htm[/url]

    or

    [url]http://www.projectseven.com/tutorials/auto_hide/index.htm[/url]

    or even -

    [url]http://www.youngpup.net/?request=/components/ypSlideOutMenus.xml[/url]

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "djvalles@yahoo.com" <webforumsuser@macromedia.com> wrote in message
    news:bli24v$bj8$1@forums.macromedia.com...
    > Yes, please send me the links.
    >
    > However, if you do know how to correct the memory leak, please tell me -
    I'm familiar with JS, there's just a lot in there.
    >
    > Thanks.
    >
    >

    Murray *TMM* Guest

  6. #5

    Default Re: Javascript menu leaks memory

    "djvalles@yahoo.com" <webforumsuser@macromedia.com> wrote in message
    news:bli24v$bj8$1@forums.macromedia.com...
    > However, if you do know how to correct the memory leak, please
    >tell me - I'm familiar with JS, there's just a lot in there.
    The memory leaks in IE are caused when DOM elements (and/or ActiveX
    objects) hold references to JavaScript objects while those JavaScript
    objects hold references to the DOM elements (no matter how indirectly).
    The Garbage collector in IE cannot free any objects involved in such a
    circular chain of references.

    Breaking the circle (at any point) allows the garbage collector to free
    the memory, and the onunload event provides a good opportunity to break
    the circular references (though not forming them in the first place
    would be a better option if that is practical).

    I have no intention of looking at any Fireworks menu code ever again (it
    is total rubbish) so I could not tell you which references would need to
    be nulled. Be suspicious of functions (especially inner functions)
    assigned to event handlers, expando properties and uncleared DOM element
    references preserved in closures (often accidentally when code is
    written by people who do not really understand JavaScript) and check
    every DOM element that implements the Element (and possibly Node)
    interface(s) (including the document object).

    There have been a couple of fairly detailed discussions of this problem
    on the comp.lang.javascript newsgroup so a bit a searching at
    groups.google.com would produce more detailed information.

    Richard.


    Richard Cornford Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139