Posts

Showing posts from September, 2016

Liferay Popups

1. Displaying content as pop up <script> function showDependancyPopup() {               var content = $('#id').html();         AUI().use('aui-base', 'aui-io-plugin-deprecated',                 'liferay-util-window', function(A) {                     var popUpWindow = Liferay.Util.Window.getWindow({                         dialog : {                             centered : true,                             constrain2view : true,                             modal : true,                             resizable : false,                             width : 600,                             bodyContent : content,                              buttons:[{                                text:'OK',handler:function() {                                 this.close();                }                                }]                         }                     }).plug(A.Plugin.IO, {                         autoLoad : false