Ajax Call using Alloy UI
Lately I was trying to get data back from response once the Ajax Call is complete. There were few examples and i couldnt find them conclusive enough. Here is the snippet of MVC Portlet in Liferay 6. In this example i am sending a AJAX request with parameters and then getting few parameter back from response using Alloy UI Ajax Call.
Following is the code, from the JSP file which makes an AJAX Call.
Alloy UI Call, JSP Snippet
MVC Portlet Class
Following is the code from MVC Portlet.
Feel free to email me or comment for further questions.