Hi,

I have a seemingly simple requirement to grab the text of a dockedItem's item's textfield value. I.e, what the user has entered in an input box.

The handler is an ajax call. How do I access the docked item (items) textfield value ?

var makeAjaxRequest = function() { HELP NEEDED HERE TO ACCESS TEXT VALUE }

var viewport = new Ext.Panel({
fullscreen: true,
dockedItems: [{
xtype: 'toolbar',
dock: 'top',
items: [{
xtype: 'field',
xtype: 'textfield',
name : 'name',
id: 'userinput',
placeHolder: 'enter IPv4 or Hostname',
// label: 'Name',
autoCapitalize : false
},{
text: 'Go',
handler: makeAjaxRequest
}]
}]
});