SERVER SIDE CODE REQUEST ON BUTTON TAB IN SENCHA TOUCH.

Tanuj Kumar

Total Post:134

Points:940
Posted by  Tanuj Kumar
 1497  View(s)
Ratings:
Rate this:
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.
  1. Arun Singh

    Post:68

    Points:476
    Re: Server side code request on button tab in Sencha Touch.

    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. 

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!