hey guys so i'm trying to add a simple handler on a button in my window. The handler just sets a value from a text file to a combobox item id = 'wildanimal'
items: [{
itemId: 'button1',
xtype: 'button',
text: 'click the button',
handler: function(){
Ext.Ajax.request({
url: 'stuff.txt',
method: 'GET',
success: function (result){
this.up('Ajax').down('wildAnimal').setValue(result.responseText)
}
})
}
however I receive a Uncaught TypeError: Object [object global] has no method 'up' ... is there a way to do this without using .up ?