Results 1 to 2 of 2

Thread: IE - Ext.Panel removeAll() error -> 'parentNode' is null or not an object

  1. #1
    Sencha User
    Join Date
    Nov 2008
    Posts
    96

    Default IE - Ext.Panel removeAll() error -> 'parentNode' is null or not an object

    Hello,

    in internet explorer i receive this error when the panel.removeAll() function is called. In FF works fine, and i don't really get it why it is happening. Any ideas? I did a debug and the flow is the following:
    - panel.removeAll() ;
    '- remove(item, AutoDestroy) : for each item in panel
    '- doRemove(c, autoDestroy)
    '- l.onRemove(c) : where l is layout
    '- el.insertAfter(ct)
    ....and in insertAfter breaks:
    Code:
     /**
             * Inserts this element after the passed element in the DOM
             * @param {Mixed} el The element to insert after
             * @return {Ext.Element} this
             */
            insertAfter: function(el){
                (el = GETDOM(el)).parentNode.insertBefore(this.dom, el.nextSibling);
                return this;
            },
    Thanks in advance!

  2. #2
    Sencha User
    Join Date
    Nov 2008
    Posts
    96

    Default

    I forgot to reply the solution to this thread...the problem was that the dom was not anymore there. In my case the component was rendered to a div, and the div content was cleared before the call to removeAll()....FF though had no problem with this.

Similar Threads

  1. Replies: 8
    Last Post: 20 May 2010, 2:27 AM
  2. parentNode is null or not an object
    By titzu in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 4 Mar 2010, 8:11 AM
  3. Replies: 2
    Last Post: 2 Mar 2010, 10:34 AM
  4. dom.parentNode is null or not an object
    By sanraj in forum Ext 2.x: Help & Discussion
    Replies: 19
    Last Post: 12 Nov 2009, 3:35 PM

Posting Permissions

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