Tuesday, November 25, 2014

[Liferay] Ajax with JQuery, AUI with Action URL / Resource URL

Though its pretty simple and has been there for a long time now, I am writing this post to help new users.

Check the code below with three links. We will use these links to call our data using ajax calls.

To make an ajax call using JQuery with actionURL

To make an ajax call using JQuery with resourceURL

To make an ajax call using AlloyUI and resourceURL

Hope this helps someone in need.

You can get the source of the portlet here on github
Ajax JQuery Portlet
This portlet is for 6.1.20 version of Liferay and for previous versions you can check here.
Ajax JQuery Portlet

Until next time. Keep Ajax -ing :-)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.