Fórum

using javascript in web content display portlet

amani kh, modificado 11 Anos atrás.

using javascript in web content display portlet

Junior Member Postagens: 43 Data de Entrada: 17/11/12 Postagens Recentes
hello, is it possible to include javascript code in web content display portlet (not web content template)?
thumbnail
Pavel Savinov, modificado 11 Anos atrás.

RE: using javascript in web content display portlet

Junior Member Postagens: 94 Data de Entrada: 24/09/12 Postagens Recentes
Hi.

Yep, it's possible, like that:
<script type="text/javascript" src="http://www.myhost.com/myscript.js"></script>
amani kh, modificado 11 Anos atrás.

RE: using javascript in web content display portlet

Junior Member Postagens: 43 Data de Entrada: 17/11/12 Postagens Recentes
hi, thank you Pavel Savinov
and where to add this code? in portal_normal.vm?
thumbnail
Pavel Savinov, modificado 11 Anos atrás.

RE: using javascript in web content display portlet

Junior Member Postagens: 94 Data de Entrada: 24/09/12 Postagens Recentes
You can add it to your template or directly to the source of particular Web Content.
amani kh, modificado 11 Anos atrás.

RE: using javascript in web content display portlet

Junior Member Postagens: 43 Data de Entrada: 17/11/12 Postagens Recentes
actualy I am not using template in my web content display portlet, I am only using html code (to display some photos), in this case where to add javascript plz ?
thumbnail
Pavel Savinov, modificado 11 Anos atrás.

RE: using javascript in web content display portlet

Junior Member Postagens: 94 Data de Entrada: 24/09/12 Postagens Recentes
Press "Edit" icon on your Web content, în the editor press "Source" button, insert the code in the top of your page.
amani kh, modificado 11 Anos atrás.

RE: using javascript in web content display portlet

Junior Member Postagens: 43 Data de Entrada: 17/11/12 Postagens Recentes
thank you, I ll try it !