Fórum

Call JS when page / portlet is loaded

thumbnail
Marco Endres, modificado 7 Anos atrás.

Call JS when page / portlet is loaded

Regular Member Postagens: 112 Data de Entrada: 22/08/12 Postagens Recentes
Hey guys,

How can I call Javascript when the page or a specific portlet is loaded? The normal window.ready is too early and doesn't work with the SennaJS plugin i think.

Thank you
thumbnail
Juan Gonzalez, modificado 7 Anos atrás.

RE: Call JS when page / portlet is loaded

Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
Try these different methods, I think all still apply for Liferay 7:

https://dev.liferay.com/develop/tutorials/-/knowledge_base/6-1/javascript