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.

MVC Portlet Serve Resource Method



Feel free to email me or comment for further questions.

– Thanks
Arvind Mishra


2 thoughts on “Ajax Call using Alloy UI

  1. I tried this example in Firefox and IE. It’s working in Firefox and IE8. But not in IE7. I have to make AUI ajax in IE 7. Is it supported.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s