1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    15
    Vote Rating
    0
    Answers
    1
    janaja is on a distinguished road

      0  

    Default Unanswered: Ext.DomHelper.append Exception

    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
    827
    Vote Rating
    55
    Answers
    84
    jerome76 has a spectacular aura about jerome76 has a spectacular aura about jerome76 has a spectacular aura about

      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