Skip to main content

Posts

Showing posts from January, 2015

Understand _spPageContextInfo object in SharePoint

Introduction While creating the app in SharePoint we are using JavaScript and Client side object model. In development of app, we would require some basic properties to handle our app, SharePoint provide the few properties with _spPageContextInfo object. _ spPageContextInfo will provide the 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 Implementation You can also access this object in JavaScript model as <script type=”text/javascript”> var propertyV...