Fórum
JQuery not working in version 6.0GA
path finder liferay, modificado 13 Anos atrás.
JQuery not working in version 6.0GA
Expert Postagens: 262 Data de Entrada: 18/09/09 Postagens Recentes
Hello everyone,
i'm trying to use jquery in my portlets... Previously i used in liferay 5.2.3 it worked fine but when i moved from liferay version 5.2.3 to 6.0GA Jquery stuff is not working can any one please tell how to make this jquery thing work in this new version 6.0GA
I'm using jquery plugin which comes from liferay version itself(1.2.6)
i'm including my external plugins(dialogue,tabs) from my custom theme
Can any one please help me to get a slution....
Thanks in advance....
Regards,
Path finder
i'm trying to use jquery in my portlets... Previously i used in liferay 5.2.3 it worked fine but when i moved from liferay version 5.2.3 to 6.0GA Jquery stuff is not working can any one please tell how to make this jquery thing work in this new version 6.0GA
I'm using jquery plugin which comes from liferay version itself(1.2.6)
i'm including my external plugins(dialogue,tabs) from my custom theme
Can any one please help me to get a slution....
Thanks in advance....
Regards,
Path finder
Mika Koivisto, modificado 13 Anos atrás.
RE: JQuery not working in version 6.0GA
Liferay Legend Postagens: 1519 Data de Entrada: 07/08/06 Postagens Recentes
Liferay no longer uses jQuery so you need to add jQuery to your theme or your portlet. Now you are free to use any jQuery version you want.
path finder liferay, modificado 13 Anos atrás.
RE: JQuery not working in version 6.0GA
Expert Postagens: 262 Data de Entrada: 18/09/09 Postagens Recentes
Thanks Mika Koivisto for your quick reply
now how can i add Jquery as an external plugin?
i've kept jquery's js files in my projects js path and tried to load but dint worked out for me
i've added in this way
correct me if i'm wrong
can anyone please explain me how to load in detail
Thanks
Regards,
Path Finder
now how can i add Jquery as an external plugin?
i've kept jquery's js files in my projects js path and tried to load but dint worked out for me
i've added in this way
<script src="<%=request.getContextPath()%>/docroot/js/jquery.js" type="text/javascript"></script>
correct me if i'm wrong
can anyone please explain me how to load in detail
Thanks
Regards,
Path Finder
path finder liferay, modificado 13 Anos atrás.
RE: JQuery not working in version 6.0GA
Expert Postagens: 262 Data de Entrada: 18/09/09 Postagens Recentes
no answer
Nagendra Kumar Busam, modificado 13 Anos atrás.
RE: JQuery not working in version 6.0GA
Liferay Master Postagens: 678 Data de Entrada: 07/07/09 Postagens Recentes
I hope you are trying to access it in one of your portlet, in that case add it in liferay-portlet.xml
Let us know whether it is working or not
<header-portlet-javascript>/js/jquery.js</header-portlet-javascript>
Let us know whether it is working or not
Mika Koivisto, modificado 13 Anos atrás.
RE: JQuery not working in version 6.0GA
Liferay Legend Postagens: 1519 Data de Entrada: 07/08/06 Postagens Recentes
Sorry. Should remember to subscribe to every topic I answer to get email updates. What Nagendra is suggesting works from plugins. If you want to reference the file in your theme you could add following line in your portal_normal.vm file:
<script src="$javascript_folder/jquery.js" type="text/javascript"></script>