Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
amani kh
using javascript in web content display portlet
20 de Novembro de 2012 10:03
Resposta

amani kh

Ranking: Junior Member

Mensagens: 43

Data de entrada: 16 de Novembro de 2012

Mensagens recentes

hello, is it possible to include javascript code in web content display portlet (not web content template)?
Anil Sunkari
RE: using javascript in web content display portlet
20 de Novembro de 2012 20:56
Resposta

Anil Sunkari

Ranking: Expert

Mensagens: 427

Data de entrada: 11 de Agosto de 2009

Mensagens recentes

You mean you want to Customize/Extend Web Content Display Portlet? Then also its possible.
amani kh
RE: using javascript in web content display portlet
20 de Novembro de 2012 21:42
Resposta

amani kh

Ranking: Junior Member

Mensagens: 43

Data de entrada: 16 de Novembro de 2012

Mensagens recentes

actualy I want to use a jQuery with a web contnet display portlet, is it possible?
Anil Sunkari
RE: using javascript in web content display portlet
21 de Novembro de 2012 00:23
Resposta

Anil Sunkari

Ranking: Expert

Mensagens: 427

Data de entrada: 11 de Agosto de 2009

Mensagens recentes

Yes its possible.Only thing is how you handle the way you were expecting matters on your requirement base.
amani kh
RE: using javascript in web content display portlet
21 de Novembro de 2012 21:58
Resposta

amani kh

Ranking: Junior Member

Mensagens: 43

Data de entrada: 16 de Novembro de 2012

Mensagens recentes

thank you Anil Sunkari, plz can you tell me the steps how to do this?
Anil Sunkari
RE: using javascript in web content display portlet
22 de Novembro de 2012 00:09
Resposta

Anil Sunkari

Ranking: Expert

Mensagens: 427

Data de entrada: 11 de Agosto de 2009

Mensagens recentes

Refer Below URL:

http://www.liferay.com/zh/web/nathan.cavanaugh/blog/-/blogs/5363997

Hope it surely meets your requirement and still need any assitance.Welcome.

Regards,
Anil Sunkari
amani kh
RE: using javascript in web content display portlet
22 de Novembro de 2012 00:19
Resposta

amani kh

Ranking: Junior Member

Mensagens: 43

Data de entrada: 16 de Novembro de 2012

Mensagens recentes

hi, thank you one more time Anil Sunkari
I tried this, it dosnt work with a "web content display portlet", actulay I have only HTML code in my web content display portlet (I am using it to put some content in my page) and I wanna use a jQuery plugin with it (popup jQuery) but I dont know how to integrate them together!
I hope this clarifies the issue to you.thanks
Anil Sunkari
RE: using javascript in web content display portlet
22 de Novembro de 2012 21:23
Resposta

Anil Sunkari

Ranking: Expert

Mensagens: 427

Data de entrada: 11 de Agosto de 2009

Mensagens recentes

If i'm correct you are working out to display someting in Pop-Up whcih you have to achieve it with JQuery.
Jquery itself has so many user friendly methods to make it as simple as possible. For Example. I have a div

<div id="xxx">
Here My COntent Goes.........
</div>

JQuery("#xxxx").popup{}

I'm not sure about tyour Jquery Knowledge Existance. ... you will geta lot.

Correct me if i'm wrong with your understanding

Regards,
Anil Sunkari
amani kh
RE: using javascript in web content display portlet
23 de Novembro de 2012 21:16
Resposta

amani kh

Ranking: Junior Member

Mensagens: 43

Data de entrada: 16 de Novembro de 2012

Mensagens recentes

hi Anil Sunkari, my pb is not with the jQuery, all the pb is that I dont know how to integrate jQuery (javascript files) with the web content display portlet, is there a way??
thank you.
Ramesh Mandri
RE: using javascript in web content display portlet
24 de Novembro de 2012 00:05
Resposta

Ramesh Mandri

Ranking: New Member

Mensagens: 8

Data de entrada: 23 de Maio de 2011

Mensagens recentes

Dear amani,

You can keep your java script code at manage page --> java script
Anexo

Anexos: javascript.png (20,0k)
Dan Cotton
RE: using javascript in web content display portlet
19 de Agosto de 2013 11:05
Resposta

Dan Cotton

Ranking: New Member

Mensagens: 11

Data de entrada: 21 de Novembro de 2007

Mensagens recentes

I have tried using the "javascript" section noted i the image above but once I save it the page is escaping the JS I entered with the [CDATA...] and the script does not load or run.

Suggestions?