Monday, January 3, 2011

TIPS: Using jquery in Liferay 6 through Alloy

We just cannot use alloy object with the jquery because Each jQuery object created with the jQuery() function contains a number of properties alongside with its methods. These properties allow us to inspect various attributes of the object. To solve this problem we can use getDom method of alloy to get dom and only then we can use them with jquery
Example:
var parentNode = node.get('parentNode');
jQuery(“.Class”,parentNode.getDOM())

1 comment: