function GetPopUp ("../folder/file.htm", "POPUP Title") { var xpos = mouse_x; var ypos = mouse_y; var windowID = $(href.split('/')).last()[0].split('.')[0]; var $dialog = $("#" + windowID) var dimensions = GetPopUpDimensions(windowID); $('body').after('<iframe id="' + windowID + '" style="padding:0;" src="' + href + '"> </iframe>'); $dialog = $("#" + windowID) $dialog.dialog( { autoOpen: false, title: title, position: 'center', sticky: false, width: dimensions.DialogWidth, height: dimensions.DialogHeight, draggable: true, resizable: false, modal: true, close: function () { $(this).dialog('destroy'); $("#" + windowID).remove(); } }); $dialog.load(function () { $dialog.dialog('open'); $dialog.css("width", "100%"); // reset the width that is set by jquery UI }); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)