Hybrid View
-
17 Aug 2012 5:29 AM #1
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:
First event trigger goes well and the div is added.Code:Ext.DomHelper.append(this.element, {tag:'div',cls:'myCivClass'}, true);
When I move to another view and then re-open the view that have my subclassed image :
I get the following exception:
Has anyone seen this ?Code:INVALID_NODE_TYPE_ERR: DOM Range Exception 2
-
17 Aug 2012 7:31 AM #2
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


Reply With Quote