babjibalaji
7 Dec 2010, 2:09 AM
Hi All,
I am new to Sencha development, and i am started learning it
for this i have selected Login Page and i Used Ext.form.formPanel and here is my submit code
listeners : {
submit : function(fm, re){
console.log('success', Ext.toArray(arguments));
alert('111');
alert(fm); // this is giving as OBJECT
alert('222');
alert(re.result); // this is giving me as UNDEFINED
alert('333');
getList();
},
exception : function(form, result){
console.log('failure', Ext.toArray(arguments));
},
scope : this
},
when i put submit function in Handler i did not get action into success: callback shortcut
but when i put submit function in Listener i am able to get action into success: and able to get the alert message
here my concern is to get the data which i sent from Servlet as "{"success":true,"data":[{"dataname1":"data1", "dataname2":"data2"}]}"
please help me out the process of getting data
I am new to Sencha development, and i am started learning it
for this i have selected Login Page and i Used Ext.form.formPanel and here is my submit code
listeners : {
submit : function(fm, re){
console.log('success', Ext.toArray(arguments));
alert('111');
alert(fm); // this is giving as OBJECT
alert('222');
alert(re.result); // this is giving me as UNDEFINED
alert('333');
getList();
},
exception : function(form, result){
console.log('failure', Ext.toArray(arguments));
},
scope : this
},
when i put submit function in Handler i did not get action into success: callback shortcut
but when i put submit function in Listener i am able to get action into success: and able to get the alert message
here my concern is to get the data which i sent from Servlet as "{"success":true,"data":[{"dataname1":"data1", "dataname2":"data2"}]}"
please help me out the process of getting data