1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    7
    Vote Rating
    0
    jasspier is on a distinguished road

      0  

    Default iframe cause memery leak in IE6?

    iframe cause memery leak in IE6?


    i create iframes in BorderLayout ,and open pages in the iframes ,like this:
    Code:
    var welcome = YAHOO.ext.DomHelper.append(document.body, 
                                                                  {tag: 'iframe', frameBorder: 0, src: 'welcome.html'});
    var lv = new YAHOO.ext.ContentPanel(welcome, {title: '欢迎', fitToFrame:true, closable:true});
    innerLayout.add('center', lv);
    but after i click the icon on tabs ,it seems the panel is gone ,but in fact the unload not fired , memery not lowered and AD keeping popup .
    is this a bug or i get something wrong?[/code]

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    It's impossible to do cleanup on everything for you automatically. There's just no way for me to know what you put in a ContentPanel (CP). While I do try to auto clean up, iframes don't follow the standard convention and may present problems.

    There a few things you can try though:

    1) wrap the iframe in a div and set resizeEl on the CP config to the iframe. This way when it's removed and destroyed maybe it will take the iframe with it.

    2) override "destroy()" on your panel and do your own clean up.

    3) Probably the best option is to recycle your iframes and ContentPanels.

  3. #3
    Ext User
    Join Date
    Apr 2007
    Posts
    73
    Vote Rating
    0
    PFM is on a distinguished road

      0  

    Default


    Need help with IFRAME understanding.... our application has a top frame and each tabbed contentPanel uses an IFRAME. In IE6, the performance is horrible after several IFRAMES are loaded and destroyed. I have been researching on ways to improve performance, but I think I first need help in understanding something.

    My question is, when an IFRAME is destroyed by clicked the X on the tabbed ContentPanel, is everything loaded in it destroyed automatically, such as listeners, DOM elements, etc?

    In Firefox and IE, I can see the DOM gone, but wonder if there are any remnants left over that aren't cleaned up automatically. Should I be trying to clean something up?

  4. #4
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default


    http://www.sencha.com/forum/showthread.php?t=8887

    please refrain from thread hijacking.

    if you need help on this topic, post in Help with a link back to the original post.

  5. #5
    Sencha User fangzhouxing's Avatar
    Join Date
    Mar 2007
    Posts
    468
    Vote Rating
    1
    fangzhouxing is on a distinguished road

      0  

    Default


    hi, PFM,you can see this post:

    http://extjs.com/forum/showthread.php?t=11406

  6. #6
    Ext User
    Join Date
    Apr 2007
    Posts
    73
    Vote Rating
    0
    PFM is on a distinguished road

      0  

    Default


    sorry mystix... did not recognize it was under bugs.

    Thanks fangzhouxing.

Similar Threads

  1. problem with memory leak
    By kuzynpiy in forum Ext 1.x: Help & Discussion
    Replies: 31
    Last Post: 28 Jun 2007, 2:31 AM
  2. [SOLVED] Memory Leak in Paging Grid Example?
    By cobnet in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 3 May 2007, 8:24 PM
  3. Memory Leak issue when using startAutoRefresh
    By wanderingwalrus in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 6 Feb 2007, 9:32 PM
  4. Div vs IFrame
    By techno_adi in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 7 Nov 2006, 3:03 PM
  5. IFRAME
    By genius551v in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 30 Sep 2006, 7:38 AM

Thread Participants: 4