If 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