i have popup for on click event...........
i want to display it on center of my page.......(currently it comes on upper right corner of page)
My code............
1
2
3function loadContent(str)
4{
5 AUI().ready('aui-dialog', function(A) {
6
7
8
9 var html='<img src="';
10 html +=scrt;
11 html +='"/> <br> <b> my image <b/>';
12
13 var dialog2 = new A.Dialog(
14 {
15 header: 'image',
16 title: 'Image',
17 bodyContent: html,
18 modal:true,
19 noCenter: true,
20 xy: ['center', 100],
21
22 }
23
24 ).render();
25
26 });
27};