Foros de discusión

Call JS when page / portlet is loaded

thumbnail
Marco Endres, modificado hace 7 años.

Call JS when page / portlet is loaded

Regular Member Mensajes: 112 Fecha de incorporación: 22/08/12 Mensajes recientes
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 hace 7 años.

RE: Call JS when page / portlet is loaded

Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
Try these different methods, I think all still apply for Liferay 7:

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