Results 1 to 6 of 6

Thread: iframe cause memery leak in IE6?

  1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    7
    Vote Rating
    0
      0  

    Default 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
    New York, NY
    Posts
    6,956
    Vote Rating
    20
      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
      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 User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
      0  

    Default

    https://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
    471
    Vote Rating
    2
      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
      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

Posting Permissions

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