留言板

Ajax Sample Portlets using JQuery around?

thumbnail
Michael G,修改在15 年前。

Ajax Sample Portlets using JQuery around?

New Member 帖子: 9 加入日期: 08-6-30 最近的帖子
Hi folks, it would be great to have them for getting a quick start...
Anybody has used that Ajax and JQuery yet?
Regards,
Michael
thumbnail
Thiago Moreira,修改在15 年前。

RE: Ajax Sample Portlets using JQuery around?

Liferay Legend 帖子: 1449 加入日期: 07-10-10 最近的帖子
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
thumbnail
Tarun S. Kayasth,修改在14 年前。

RE: Ajax Sample Portlets using JQuery around?

Regular Member 帖子: 162 加入日期: 07-6-8 最近的帖子
Hi Thiago,

Do we have any Liferay Ajax Sample Portlet?

Thanks,
Tarun
thumbnail
Ravi Kumar Gupta,修改在13 年前。

RE: Ajax Sample Portlets using JQuery around?

Liferay Legend 帖子: 1302 加入日期: 09-6-24 最近的帖子
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
Mai Toan,修改在13 年前。

RE: Ajax Sample Portlets using JQuery around?

New Member 发布: 1 加入日期: 10-12-14 最近的帖子
Hi Michael G!
Did you working with jquery ? Please give me some suggess. Thanks
thumbnail
Ravi Kumar Gupta,修改在13 年前。

RE: Ajax Sample Portlets using JQuery around?

Liferay Legend 帖子: 1302 加入日期: 09-6-24 最近的帖子
Hello,

I have added the portlet to Liferay community plugins.

here is the link for the portlet.

Cheers!!!
thumbnail
Juanjo Hernández Cánovas,修改在12 年前。

RE: Ajax Sample Portlets using JQuery around?

Regular Member 帖子: 183 加入日期: 08-8-11 最近的帖子
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.
thumbnail
Ravi Kumar Gupta,修改在12 年前。

RE: Ajax Sample Portlets using JQuery around?

Liferay Legend 帖子: 1302 加入日期: 09-6-24 最近的帖子
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>';