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 details on Microsoft’s site.

Comments

Popular Posts

SharePoint Interview Questions and Answers

Download Infopath Form Templates

How to get current logged user information using JavaScript ?

Steps to set Form based authentication (FBA) for SharePoint 2010

SharePoint Interview Questions and Answers II

Get List Items - JavaScript

Cross Site List Rollup Web Part for SharePoint 2010

Hide Recently Modified Items

Change Language for current user with JSOM in SharePoint Online

SharePoint 2010 CSS Chart