View Full Version : Send a request to the backend using Ajax or Rest

26 May 2012, 10:42 AM

I'm using MVC in my app and in the Viewport there is a Logout button. In the controller I handle the event when this button is clicked. Since the button is not associated with any form panel, so my question is in the event handling function how I sends a logout request to the backend, either using ajax or Rest (the latter is preferred.)

Thanks and regards,

26 May 2012, 10:46 AM
After posting the question I found Ext.Ajax.request. I'm trying it and hopefully it can answer my question.

26 May 2012, 2:09 PM
You can use ajax request for this situation; also it's possible to use rest as well, it's up to you.