PDA

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



khatuido
25 Apr 2008, 12:28 AM
Hello

In fact i want get an object with the id.



var combo = new Ext.form.ComboBox({
id:"testCombo",
[...]
})


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.

Animal
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!

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

khatuido
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.

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