Jay Roy
asked on
javascript Uncaught TypeError: Cannot read property 'dom' of null
hi experts
when i use a code something like this in my javascript
I end up getting error >> Uncaught TypeError: Cannot read property 'dom' of null
any idea whats wrong with the above code ?
When i comment out the above code the error goes away.
( I am using Ext-js 4.2 )
thanks.
when i use a code something like this in my javascript
var customerImg = Ext.create('Ext.Img', {
src: 'images/customer.png',
width: 14,
height: 14,
margin : '0 0 0 5',
//renderTo: Ext.getBody(),
listeners: {
afterrender: function(c) {
Ext.create('Ext.tip.ToolTip', {
target: c.getEl(),
html: 'This represents customer delays.'
});
}
}
});
{
xtype: customerImg
},
I end up getting error >> Uncaught TypeError: Cannot read property 'dom' of null
any idea whats wrong with the above code ?
When i comment out the above code the error goes away.
( I am using Ext-js 4.2 )
thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
modified my code as per yours, seems fine now
thanks
thanks
Thanks for the points.
ASKER
hi pravinasar
Will appreciate any help with my next question
https://www.experts-exchange.com/questions/28529299/passing-list-from-UI-to-spring-MVC-controller.html
thanks.
Will appreciate any help with my next question
https://www.experts-exchange.com/questions/28529299/passing-list-from-UI-to-spring-MVC-controller.html
thanks.
By the time, I looked at, it is deleted.
Thanks
Thanks
ASKER
Anu idea why my code gives this error only on second time?