March 20, 2012

Modal Pop Up Close Window.Close() - Display

javascript: window.open('', '_self', '');window.close();


For Modal Pop Up Close in SharePoint


<input type="button" onclick="javascript:window.frameElement.commitPopup();" value="No" />


Displays a modal dialog : 


//Using the DialogOptions class.
var options = SP.UI.$create_DialogOptions();

options.title = "My Dialog Title";
options.width = 400;
options.height = 600;
options.url = "/_layouts/DialogPage.aspx";

SP.UI.ModalDialog.showModalDialog(options);

//Using a generic object.
var options = {
    title: "My Dialog Title",
    width: 400,
    height: 600,
    url: "/_layouts/DialogPage.aspx" };

SP.UI.ModalDialog.showModalDialog(options);

http://msdn.microsoft.com/en-us/library/ff410058.aspx 


Normal Window Modal Dialog

http://msdn.microsoft.com/en-us/library/ie/ms536759(v=vs.85).aspx 

No comments:

SonarQube with Jenkins Setup using Docker Images

https://funnelgarden.com/sonarqube-jenkins-docker/  https://medium.com/@hakdogan/an-end-to-end-tutorial-to-continuous-integration-and-con...