Darkhan
Darkhan

Reputation: 93

How to dynamically change URL of liferay iframe portlet?

I need to create a page with two portlets. The first one will need to change the url source of the second iframe portlet on click. However, the requirement is that the page should not be reloaded.

Is it possible to implement? If yes, then how?

I read from iframe documentation that the page can be changed, but it requires the page to be reloaded.

Upvotes: 0

Views: 2192

Answers (1)

Sharana
Sharana

Reputation: 749

Personally, I prefer doing it Ajax way rather than iframe, in JSR 268 Inter portlet communication can be achieved. for more details, you can visit this link.

http://www.liferay.com/community/wiki/-/wiki/Main/Inter-portlet+communication

Upvotes: 2

Related Questions