Liferay Alloy Popup


To Display some Html content in Alloy Popup:


< aui:script >
function callPopup(){
AUI().ready('aui-dialog', 'aui-overlay-manager', 'dd-constrain', function(A) {
var dialog = new A.Dialog({
title: 'DISPLAY CONTENT',
centered: true,
modal: true,
width: 500,
height: 400,
bodyContent: "This is testing content inside the popup"
}).render();
});

}

</aui:script >

Blogs
Dear Tauseef,

Thanks for sharing. Appreciate if you also cover how to load some content through AJAX in the popup.

Ahamed Hasan
Author, Liferay Cookbook
http://mpowerglobal.com/download-cookbook
Hi Ahmed,
I tried to use your code to show a popup message dialog, but I'm getting a javascript error "TypeError :a.Dialog is not a constructor".
I'm using Liferay 6.2.
I'm strugling for two days but I could not fixe it.
Please, I need your help.
Thanks alot.