Fórum

Accessing content of portlet from outside without iframe

Oliver Wolff, modificado 14 Anos atrás.

Accessing content of portlet from outside without iframe

New Member Mensagem: 1 Data de Entrada: 26/05/09 Postagens Recentes
Hi everyone,

Is there any way to display the content of a portlet within a different (Straight-html) page?

The sharing feature with the JavaScript snippet

<script src="http://localhost:8080/html/js/liferay/widget.js" type="text/javascript"></script>
<script type="text/javascript">
Liferay.Widget({ url: 'http://localhost:8080/widget/web/s....'});
</script>

creates an IFrame the loads the portlet completely. As far as I understand this is done within the Liferay.Widget call.

Is there any way to load the content of the portlet into a <div>?

Regards
Oliver