using Javascript/Jquery(JSOM)
Introduction
This article is about creating "Working on it" Custom Dialog Box in SharePoint.
Let's Start
Define a global Variable 'waitDialog'.
var
waitDialog =
null
;
While calling a Save function using Rest API or any long Operation function, Call RequestStarted() function at the starting and just before the end of the Save function, Call RequestEnded() function.
function
RequestStarted() { ExecuteOrDelayUntilScriptLoaded(ShowWaitScreen, "sp.js"); };
function
RequestEnded() {
try
{ waitDialog.close(); waitDialog =
null
; }
catch
(ex) { } };
function
ShowWaitScreen() {
try
{
if
(waitDialog ==
null
) { //waitDialog = SP.UI.ModalDialog.showWaitScreenWithNoClose('Processing...', 'Please wait while request is in progress.', 100, 380); waitDialog = SP.UI.ModalDialog.showWaitScreenWithNoClose(SP.Res.dialogLoading15); } }
catch
(ex) { } }
This information you provided in the blog that is really unique I love it!! Thanks for sharing such a great blog. Keep posting..
ReplyDeleteSharepoint training in Noida
Sharepoint course in Noida
Sharepoint training institute in Noida
This information you provided in the blog that is really unique I love it!! Thanks for sharing such a great blog. Keep posting..
ReplyDeleteSharepoint training in Delhi
Sharepoint training institute in Delhi
Sharepoint course in Delhi
GOOD Article !! Thanks for sharing..
ReplyDeleteSharepoint Online Training
Sharepoint Training
Office 365 Online Training
Office 365 Training