Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Rochad Tlusty
Getting AssetTags with javascript
January 22, 2013 11:26 PM
Answer

Rochad Tlusty

Rank: Junior Member

Posts: 42

Join Date: January 18, 2012

Recent Posts

I'm trying to make a jQuery object of asset tags. The javascript is loaded in the theme, because we will need to load it on several pages. To get the tags, I use:

1var tags = $(Liferay.Service.Asset.AssetTag.getGroupsTags({groupIds: groupIds},callback));


When I place this in a script tag on a portlet jsp page, I can get the list. When I move this to the themes main.js, it no longer works. Does anyone know how to achieve this?
Rochad Tlusty
RE: Getting AssetTags with javascript
January 24, 2013 10:32 AM
Answer

Rochad Tlusty

Rank: Junior Member

Posts: 42

Join Date: January 18, 2012

Recent Posts

bump? anyone?
Rochad Tlusty
RE: Getting AssetTags with javascript
September 5, 2013 2:50 PM
Answer

Rochad Tlusty

Rank: Junior Member

Posts: 42

Join Date: January 18, 2012

Recent Posts

dfgdfgfdgfdgfd dfgdfgdfg dfgdfgdf
\\\


yjhghjghjghjt