Results 1 to 2 of 2

Thread: Ext.DomHelper.append Exception

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    16
    Answers
    1
    Vote Rating
    0
      0  

    Default Unanswered: Ext.DomHelper.append Exception

    Guys,
    I am subclassing a Sencha component ( Ext.Img ) and in one of it's event handlers I am trying to add a child div to the image button

    Inside the event handler:
    Code:
    Ext.DomHelper.append(this.element, {tag:'div',cls:'myCivClass'}, true);
    First event trigger goes well and the div is added.

    When I move to another view and then re-open the view that have my subclassed image :
    I get the following exception:
    Code:
    INVALID_NODE_TYPE_ERR: DOM Range Exception 2
    Has anyone seen this ?

  2. #2
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    1,149
    Answers
    132
    Vote Rating
    101
      0  

    Default

    It could be a webkit/caching or referencing issue. In the past, it has been a problem for other programmers.

    http://stackoverflow.com/questions/770669/invalid-node-type-err-in-jquery-when-doing-multiple-selectors-on-chrome

    http://www.sencha.com/forum/showthre...quot-in-Safari

    This guide on DOM Exceptions really helped me out:
    http://reference.sitepoint.com/javascript/DOMException

    Maybe its missing a reference to an element in the DOM

Posting Permissions

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