Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Kevin Mui
Is it possible to run a Poll Portlet within an iFrame?
December 5, 2011 8:22 AM
Answer

Kevin Mui

Rank: New Member

Posts: 6

Join Date: May 16, 2011

Recent Posts

The idea is to embed a streaming video player into a community, and have the option to have polls. The reason for the iFrame is so that when someone interacts with the poll, it does not 'refresh' the entire page, thus forcing the user to reload the video stream.

Thanks,

Kevin
Kevin Mui
RE: Is it possible to run a Poll Portlet within an iFrame?
December 13, 2011 8:43 AM
Answer

Kevin Mui

Rank: New Member

Posts: 6

Join Date: May 16, 2011

Recent Posts

Anyone have any experiencing performing this?
Stian Sigvartsen
RE: Is it possible to run a Poll Portlet within an iFrame?
December 13, 2011 12:48 PM
Answer

Stian Sigvartsen

Rank: Regular Member

Posts: 103

Join Date: August 27, 2010

Recent Posts

Have you tried creating a second hidden page for the community with an instance of the polls portlet on it and then retrieving the share as "widget" code snippet that's available for displaying it on any website (through the portlet configuration -> sharing). You can paste this code snippet into a web content (use source mode) and this will cause the portlet to be displayed, but in an iFrame so it doesn't disrupt the page that the web content is on.

-Stian
Kevin Mui
RE: Is it possible to run a Poll Portlet within an iFrame?
December 14, 2011 1:12 PM
Answer

Kevin Mui

Rank: New Member

Posts: 6

Join Date: May 16, 2011

Recent Posts

Stian Sigvartsen:
Have you tried creating a second hidden page for the community with an instance of the polls portlet on it and then retrieving the share as "widget" code snippet that's available for displaying it on any website (through the portlet configuration -> sharing). You can paste this code snippet into a web content (use source mode) and this will cause the portlet to be displayed, but in an iFrame so it doesn't disrupt the page that the web content is on.

-Stian



Absolutely brilliant. Works wonderfully, thanks for sharing!
Stian Sigvartsen
RE: Is it possible to run a Poll Portlet within an iFrame?
December 15, 2011 1:39 PM
Answer

Stian Sigvartsen

Rank: Regular Member

Posts: 103

Join Date: August 27, 2010

Recent Posts

No problem. Glad I could help.