finco
5 Apr 2007, 7:49 AM
I want to put a button on a form that passes the form values to a function when pressed. I have put the following code on the Ext.onReady event but it triggers the button when the page loads. Can someone please tell me how this should be handled? Also, I seem to be lost in the documentation - where can I find doc. on the widgets (i.e. button etc)?
Here's the code I am using:
var btnSearch = new Ext.Button('btnSearch',
{text: 'Search',
handler: DoSearch(this.value),
});
Here's the code I am using:
var btnSearch = new Ext.Button('btnSearch',
{text: 'Search',
handler: DoSearch(this.value),
});