View Full Version : Getting parent from Ext.select does not work

26 Jul 2011, 10:46 AM
Hi there,

Trying to get the parent from a table data, it seems not to properly work.

I have that :

Ext.select('table[id = bb-button-4]').parent();

which executes fine but return same result as :

Ext.select('table[id = bb-button-4]');

Here is my DOM :

<div class="x-panel-body" id="ext-gen1053" style="width: 55px; height: 43px; left: 0px; top: 0px; "><table id="bb-button-4" class="button foo bar food fookas"><tbody><tr><td align="center"><img id="bb-button-4-img" class="talk" src="data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" height="100%"></td></tr><tr><td class="bb-label">MESSAGES</td></tr></tbody></table></div>

I might be tired, but I tried on a simpler project and it also fails. I also tried with :

Ext.get(Ext.DomQuery.select('table[id = bb-button]'));

Thanks in advance !

26 Jul 2011, 6:20 PM
In ST i use up/down API

Look at
Ext.getCmp('bb-button-4').up() API