Model Dialog in SharePoint 2013
Hi, Today I have upgraded my SharePoint 2010 into SharePoint 2013. When I was trying to call link which shows forms in Model Dialog was not working. I saw that I have a javascript function “NewItem2” which is not supported in SharePoint 2013. So here are new functions to open form in Model Dialog : SP.UI.ModalDialog.ShowPopupDialog(url); SP.UI.ModalDialog.OpenPopUpPage(url, callback, width, height); SP.UI.ModalDialog.RefreshPage(dialogResult); var value = SP.UI.ModalDialog.showWaitScreenSize(title, message, callbackFunc, height, width); var value = SP.UI.ModalDialog.showWaitScreenWithNoClose(title, message, height, width); SP.UI.ModalDialog.commonModalDialogOpen(url, options, callback, args); SP.UI.ModalDialog.commonModalDialogClose(dialogResult, returnVal); SP.UI.ModalDialog.close(dialogResult); SP.UI.ModalDialog.showWaitScreenWithNoClose('Loading Title', 'Loading Message Here...'); SP.UI.ModalDialog.showWaitScreenWithNoClose(SP.Res.dialogLoading15); You can get more d...