开发者

DOM Error in EXTJS

开发者 https://www.devze.com 2023-02-14 19:23 出处:网络
While running an EXTJS code,i got an error. Error : DOM 开发者_Go百科is null or not an object. What does this error mean?First, switch your page to use ext-all-debug.js.This makes the code more readab

While running an EXTJS code,i got an error. Error : DOM 开发者_Go百科is null or not an object. What does this error mean?


First, switch your page to use ext-all-debug.js. This makes the code more readable and will hopefully give you a better idea of what the ExtJS framework is doing when it barfs on your code.

Since you have not provided any source code of yours, I suggest using Firefox with an add-on called Firebug for starters.

Firebug allows you to debug Javascript, css, html, and general issues you may have in your page. Using firebug, use the stack trace to see what object or dom-ID's are having problems. This will allow you to troubleshoot your own code.

You can also place breakpoints in your scripts and follow what is happening.


The most likely cause is you have an event registered either directly accessing the dom property or calling a method which does so, and that event fires before the component is rendered.


I've had that error before as well, turns out in my case it was a config in the view called shim, it was set to true, so I set it to false and never got that error again.

0

精彩评论

暂无评论...
验证码 换一张
取 消