Can i do something like this...
On button click i want to call a servlet..
Do i Have to use remoting api ??
Can i do something like this...
On button click i want to call a servlet..
Do i Have to use remoting api ??
Code:handler: function (){ url to servlet ### submit ### }
Just Use an Ajax Request and let your servlet provide some JSON in return to consume
PHP Code:
new Ext.Button({
text:'click me',
handler: function() {
Ext.Ajax.request({
url: 'urlToYourServlet',
success: function(a){
var retObj = Ext.util.JSON.decode(a.responseText);
},
failure: function(f,a){
}
});
});
Extensions:
Ext.ux.DatePickerPlus (Multimonth,Multiselect,...)
Ext.ux.menu.StoreMenu - Ajax Store as menu-item config
Extended Window - Aero Shadows, nested grayscaled modal windows
Ext.MessageBox.promptCombo/promptRadio/promptCheckbox
Ext.ux.plugin.triggerfieldTooltip (for Comboboxes, Datefields...)
Ext.util.MD5
Ext.util.Utf8 (encode/decode)
Ext.util.base64 (encode/decode)
Using:
ExtJS 3.4.1.1/4.2
Touch 2.3.1
XPsp3/W7sp1
IE8/9/10
FF
Chrome
i like use ajax because it work and not reface page but you use validate, you must to check form before use Ext.ajax.request().![]()