Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Michael G
Ajax Sample Portlets using JQuery around?
July 8, 2008 3:04 AM
Answer

Michael G

Rank: New Member

Posts: 10

Join Date: June 30, 2008

Recent Posts

Hi folks, it would be great to have them for getting a quick start...
Anybody has used that Ajax and JQuery yet?
Regards,
Michael
Thiago Leão Moreira
RE: Ajax Sample Portlets using JQuery around?
July 8, 2008 8:28 AM
Answer

Thiago Leão Moreira

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1399

Join Date: October 10, 2007

Recent Posts

Hi Michael,

For all over the portal the jQuery ajax functions are used. When you minimize, select a tag, change the portlet title, etc you make an ajax request. Take a look at the everything_unpacked.js file to see some examples.

Regards
Tarun S. Kayasth
RE: Ajax Sample Portlets using JQuery around?
April 13, 2010 8:15 AM
Answer

Tarun S. Kayasth

Rank: Regular Member

Posts: 160

Join Date: June 8, 2007

Recent Posts

Hi Thiago,

Do we have any Liferay Ajax Sample Portlet?

Thanks,
Tarun
Mai Toan
RE: Ajax Sample Portlets using JQuery around?
January 11, 2011 9:15 AM
Answer

Mai Toan

Rank: New Member

Posts: 1

Join Date: December 14, 2010

Recent Posts

Hi Michael G!
Did you working with jquery ? Please give me some suggess. Thanks
Ravi Kumar Gupta
RE: Ajax Sample Portlets using JQuery around?
January 11, 2011 11:09 PM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1254

Join Date: June 23, 2009

Recent Posts

Tarun S. Kayasth:
Hi Thiago,

Do we have any Liferay Ajax Sample Portlet?

Thanks,
Tarun


Hello Tarun,

Here is a simple Ajax portlet using JQuery.

Thanks
Attachments: AjaxJQueryPortlet.zip (186.0k)
Ravi Kumar Gupta
RE: Ajax Sample Portlets using JQuery around?
January 11, 2011 11:46 PM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1254

Join Date: June 23, 2009

Recent Posts

Hello,

I have added the portlet to Liferay community plugins.

here is the link for the portlet.

Cheers!!!
Juanjo Hernández Cánovas
RE: Ajax Sample Portlets using JQuery around?
January 23, 2012 3:26 AM
Answer

Juanjo Hernández Cánovas

Rank: Regular Member

Posts: 183

Join Date: August 11, 2008

Recent Posts

Hi Ravi,

I'm following the same implementation that you did in your example portlet, but for me Liferay paints "ALL" the page in the dispatcher include, it means that In the "receiver" span tag, I get all the page repeated (head and meta tags, logo, scripts, etc...).

What I'm doing wrong? Could you help me?

Thanks in advance,

Juanjo.
Ravi Kumar Gupta
RE: Ajax Sample Portlets using JQuery around?
February 19, 2012 11:39 PM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1254

Join Date: June 23, 2009

Recent Posts

You might not be using window state properly. Keep that exclusive.
See this in portlet with actions
var url = '<portlet:actionURL windowState="<%= LiferayWindowState.EXCLUSIVE.toString() %>"><portlet:param name="ajaxAction" value="getData"></portlet:param></portlet:actionURL>';