View Full Version : YAHOO.ext has no properties
Hello,
I'm quite new to EXT and I'm having some troubles with the Inline editing grid.
I tried to follow the example but I always het the error in firebug:
YAHOO.ext has no properties
YAHOO.ext.EventManager.onDocumentReady(EditorExample.init, EditorExample, true)
I'm using the EXT 1.0 beta version.
Can somebody help me?
Thanks
neongrau
5 Apr 2007, 1:28 AM
you're using old example code.
1.0b doesnt use YAHOO.ext as namespace any more.
its now just "Ext"
or for you example:
Ext.onReady(EditorExample.init, EditorExample, true);
OK thanks but could you tel me witch file has to be included?
cause now i have the error: EXT is not defined
thanks for the help
neongrau
5 Apr 2007, 1:52 AM
see this thread:
http://extjs.com/forum/showthread.php?t=2343
it explains which files to include and in what order
Problem solved but there is now another problem
Here is how the example makes a grid
var yg = Yahoo.ext.grid;
var cols = [{
header: "ID",
width: 30,
editor: new yg.TextEditor({allowBlank: false})
}
I changed Yahoo.ext to Ext but the yg.TextEditor is not a constructor
what is wrong here?
Hope the new examples are soon online (15 april I think) because without any working examples this is quite hard to lurn
neongrau
5 Apr 2007, 5:06 AM
there is a new example
http://extjs.com/deploy/ext/examples/grid/edit-grid.html
and the current documentation has some more examples
http://extjs.com/deploy/ext/docs/index.html
tryanDLS
5 Apr 2007, 7:23 AM
The examples in the beta download work. You cannot mix and match syntax from the .33 examples with the 1.0 examples. All the objects are named Ext.something, there is no more YAHOO.ext.something
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.