Foren

Load Liferay Pages via Ajax

thumbnail
Pradip A Bhatt, geändert vor 10 Jahren.

Load Liferay Pages via Ajax

Junior Member Beiträge: 51 Beitrittsdatum: 29.01.13 Neueste Beiträge
Hello All,

I am trying to load liferay page using ajax.
Like..
Normally I adding 4 liferay pages and put related portlet into each of them.

Now when I click on that liferay page (it means Page Navigation, menu) it will load normally.

Generally You all know this very well.

I want to just load this same page (same mechanism) using Ajax..

My RND :
I called ajax when i click button (which is in my portlet) , i will fire url one of my liferay pages via ajax - jquery, then it will return total html code of that page...
and when i try to add this html code in one of my div tag -> jquery <div>.html(response) then it will add total that new page into existing page - my portlet.

In short it will add that calling page into my portlet's div which i mentioned.

I want to load page via ajax when I click on Liferay Page - menu - navigation. Simple Ajax can performed simple like in portlet scenario. But out of portlet how can I achieve this..??
I am using liferay 6.1.2ca ga3 version.
So I need help regarding this.

Thanks in Advance...
Pierluca Marino, geändert vor 10 Jahren.

RE: Load Liferay Pages via Ajax

Junior Member Beiträge: 27 Beitrittsdatum: 15.11.10 Neueste Beiträge
Hi,

have you found a solution for this behavior? I have similar need.

Thanks

Pierluca
thumbnail
Pradip A Bhatt, geändert vor 10 Jahren.

RE: Load Liferay Pages via Ajax

Junior Member Beiträge: 51 Beitrittsdatum: 29.01.13 Neueste Beiträge
No... I feel that it is not possible and another thing liferay generates - render complete html so it is recommended to use ajax this way. So, it is better to load complete page normally !!