View Full Version : How get the javascript object with the id?

25 Apr 2008, 12:28 AM

In fact i want get an object with the id.

var combo = new Ext.form.ComboBox({

i can find my combo witht the var combo but can i get this object with something look like getElementById ?

I thought use "Ext.get("testCombo")" but doesn't work.

25 Apr 2008, 12:42 AM
How can this be unclear? I've extended the docs on both Ext.get and Ext.getCmp to really try to make this clear. I can't really do much more!

25 Apr 2008, 12:43 AM
Ext.get -> http://dev.extjs.com/deploy/dev/docs/?class=Ext.Element&member=Element.get

25 Apr 2008, 1:23 AM
Sorry sorry the function i wanted is Ext.getCmp() in fact but i didn't know how find this function in the API. In fact i don't know how search all the function Ext.xxx(), i know i am surely stupid or blind...
Thanks to solve my problem

Edit : I didn't want make anyone angry, sorry again.

25 Apr 2008, 1:39 AM
It's OK, it's just me getting stressed!