Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Milos Damnjanovic
Multiple portlets using jQuery not working!
November 29, 2012 10:30 AM
Answer

Milos Damnjanovic

Rank: New Member

Posts: 10

Join Date: June 15, 2012

Recent Posts

Hello dear helpful community!

I am having trouble with jQuery integration into the portal. Right now i have two custom portlets that use jQuery, one is a image slider and the second is an accordion. The problem is that when i put in the slider porlet it somehow kills off the accordion! I tried all approaches i found on the forums here, including the jQuery library into the theme trough portlet_normal.vm, i tried changing the <header-portlet-javascript> to different sources in both portlets and still i get the same problem! I hope someone has the idea how to fix this or how to get around the problem!

Thanks in advance,
Milos D.
David H Nebinger
RE: Multiple portlets using jQuery not working!
November 29, 2012 10:43 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 6699

Join Date: September 1, 2006

Recent Posts

Does your jquery code depend upon using the $ to access jquery? $ in Liferay is actually for the AUI stuff, and any jquery code you write/use should use jQuery() instead of $() syntax.
Ali Reza Akbarian
RE: Multiple portlets using jQuery not working!
November 29, 2012 11:26 PM
Answer

Ali Reza Akbarian

Rank: New Member

Posts: 6

Join Date: April 7, 2012

Recent Posts

hi everyone.
try to import jquery in bottom_js.jspf
regards.
Milos Damnjanovic
RE: Multiple portlets using jQuery not working!
November 30, 2012 3:13 AM
Answer

Milos Damnjanovic

Rank: New Member

Posts: 10

Join Date: June 15, 2012

Recent Posts

I was calling jQuery with $, and when i changed it to jQuery it started to work!

Thank you very much!
Nithin KV
RE: Multiple portlets using jQuery not working!
January 9, 2013 6:41 AM
Answer

Nithin KV

Rank: New Member

Posts: 20

Join Date: July 23, 2012

Recent Posts

it is working perfectly fine... thank you..!!!