|
|
posted on September 30, 2014 09:38
function OpenDialog(url, height, width, title) {
var vurl = url;
var vheight = height;
var vwidth = width;
var vtitle = title;
var strAddOn = '&SkinSrc=[G]';
strAddOn += '<%= DotNetNuke.Common.Globals.QueryStringEncode(DotNetNuke.UI.Skins.SkinController.RootSkin + "/" + DotNetNuke.Common.Globals.glbHostSkinFolder + "/" + "popUpSkin") %>';
strAddOn += '&ContainerSrc=';
strAddOn += '<% = DotNetNuke.Common.Globals.QueryStringEncode("/portals/_default/containers/_default/no%20container") %>';
vurl += strAddOn.toString();
alert(vurl);
var dialog = $('').appendTo('body');
dialog.dialog({ title: vtitle, modal: true, open: function (type, data) { $(this).parent().appendTo("form"); },
buttons: [{ text: "Exit", click: function () {
// var valInput = $("#iDialog").contents().find("#txtRequesterNotes");
// stuff it into a hidden field on the parent if you want
// $("input[name='hModalReturnValue']", parent.document.body).val(valInput.val());
$(this).dialog("close");
//or just return it.
// processDialogResult('refresh,' + valInput.val());
}
}]
, height: vheight
, width: vwidth
});
}
There are currently no comments, be the first to post one!