Advertise with us

Server side code request on button tab in Sencha Touch.

Hi Expert!

I want to call server side line of code on button tap (click) in Sencha Touch 2.2, how to get it?

Thanks in advance. 
Any help appreciated.
Last updated:8/14/2013 12:54:02 AM

1 Answers

Arun Singh
Arun Singh

You simply use Ajax Request to call the server side code with MVC Web API.

Ext.Ajax.request({
    dataType: 'JSONP',
    url: '/api/',
    params: values,
    method: 'POST',
success: function(response){
 },
    failure : function(response) {
     }
});

Mark as answered if your problem will resolved. 

Last updated:8/14/2013 12:54:02 AM

Answer