PDA

View Full Version : Object don't support attribute or method



edwardking
2 Sep 2010, 10:39 PM
I use Ext3.2.1,an run following code,it raise javascript error:

Object don't support attribute or method
ext-all-debug.js line: 187
code:0 char: 17
URI:http://localhost: 8080/ext/ext-all-debug.js


What's wrong with my code, thanks!

My code?












OK1

Animal
3 Sep 2010, 12:29 AM
How have you attempted to debug your code?

catapult
3 Sep 2010, 12:54 AM
I think you will find that your code does work (as long as the path to extjs is correct). You will only get a little window about 1cm square with the cross to close it. Maybe you should try giving your window some dimensions to make it larger so you can see it.

You have a closing div "</div>" but no opening div "<div>" in the body section of your html. It doesn't cause much of a problem but is incorrect.

As for debugging your code use firebug in firefox if you're not already.

Hope this helps.