string loadingtags = @" $(function () { $('#" + btnBUSelected.ClientID + @"').click(function () { $.blockUI({ centerY: 0, css: { top: '10px', left: '', right: '10px' } }); setTimeout($.unblockUI, 5000); }); }); "; Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "loadingtag", loadingtags, false);
I f you are creating a SharePoint app using JavaScript and the Client side object model you need this friendly object. In the development of an app, you would require some basic properties- SharePoint as a framework provides these with the _spPageContextInfo object. _ spPageContextInfo will provide these below properties: webServerRelativeUrl webAbsoluteUrl siteAbsoluteUrl serverRequestPath layoutsUrl webTitle webTemplate tenantAppVersion isAppWeb webLogoUrl webLanguage currentLanguage currentUICultureName currentCultureName env nid fid clientServerTimeDelta updateFormDigestPageLoaded siteClientTag crossDomainPhotosEnabled webUIVersion webPermMasks pagePersonalizationScope userId userLoginName systemUserKey alertsEnabled siteServerRelativeUrl allowSilverlightPrompt themedCssFolderUrl themedImageFileNames
Comments