1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    5
    Vote Rating
    0
    reddevil52 is on a distinguished road

      0  

    Default Uncaught Error: NOT_FOUND_ERR: DOM Exception 8

    Uncaught Error: NOT_FOUND_ERR: DOM Exception 8


    Hi,

    I'm getting this Error "Uncaught Error: NOT_FOUND_ERR: DOM Exception 8 " ext-all-debug.js:15686

    moveItem : function(item, target, position) {
    // Make sure target is a dom element
    target = target.dom || target;
    if (typeof position == 'number') {
    position = target.childNodes[position];
    }
    target.insertBefore(item.el.dom, position || null);Uncaught Error: NOT_FOUND_ERR: DOM Exception 8



    item.container = Ext.get(target);
    this.configureItem(item);
    this.childrenChanged = true;
    },


    I have no Idea what is causing this error.

    This error appears to me when I open a tab from my menu and inside that tab I have a grid with a "Edit" button which open a new tab with the data I need edit.
    The first time everything goes ok, the problem for me is when I close my tab and try to reopen again from the "Edit" option.

  2. #2
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    79
    Vote Rating
    0
    stoertebeker is on a distinguished road

      0  

    Default


    Hi,
    I receive the same error message in a different context: I have a list in a navigation view; on itemtap a sub-list is shown; so I have a function that is called upon 'itemtap'; when I do this for the first time, the sub-list-object does not exist and is then 'pushed' on the controller stack; then I go 'Back' to the main-list and tap on an item again; this time the sub-list-object already exists, is not created but then 'push()' to the navigation stack fails with said error message.
    The code of the function looks like this:
    Code:
      
      console.log(this.smen);//1st time=undefined; 2nd time=shows the sub-list  
      if (!this.smen) {
        console.log('0-shopmenu');
        this.smen = Ext.create('MyApp.view.ShopMenu');
      }
      this.getMain().push(this.smen);//here comes the error message

  3. #3
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    79
    Vote Rating
    0
    stoertebeker is on a distinguished road

      0  

    Default


    Hi,
    after testing and thinking a bit a found a workaround. Maybe that helps you as well. My issue is obviously that the object 'this.smen' exists after entering the function a second time, but then handing the object over to the push() causes the error. Interestingly after the third time the error message is not thrown anymore but the expected view doesn't show either.
    So what I did, is to destroy the object when it exists (after second) and create upon every call of the function.

    Code:
      if (this.smen) {
        this.smen.destroy();
      }
      this.smen = Ext.create('MyApp.view.ShopMenu');
      this.getMain().push(this.smen);
    Now, everything works as expected.

  4. #4
    Sencha User
    Join Date
    Apr 2012
    Posts
    8
    Vote Rating
    0
    sathish331977 is on a distinguished road

      0  

    Default


    I too had the same issue. Thanks stoertebeker your solution worked for me.

Thread Participants: 2