SharePoint javascript tip _spPageContextInfo

normally I use..

_spPageContextInfo.siteAbsoluteUrl

_spPageContextInfo.webAbsoluteUrl

_spPageContextInfo.userId

 

 

Name

SP2010

SP2013

Example Value

currentLanguage

X

X

1033

pageItemId

X

X

1

pageListId

X

X

Guid

webLanguage

X

X

1033

webServerRelativeUrl

X

X

/

webUIVersion

X

X

4 or 15

alertsEnabled

X

X

False

allowSilverlightPrompt

X

X

False

userId

X

X

9

clientServerTimeDelta

X

Time

crossDomainPhotosEnabled

X

False

currentCultureName

X

en-US

currentUICultureName

X

en-US

layoutsUrl

X

_layouts/15

pagePersonalizationScope

X

1

serverRequestPath

X

/SitePages/Home.aspx

siteAbsoluteUrl

X

http://sp

siteClientTag

X

0$$15.0.4420.1017

siteServerRelativeUrl

X

/

systemUserKey

X

1:0).w|<sid>

tenantAppVersion

X

0

webAbsoluteUrl

X

http://sp

webTemplate

X

1

webLogoUrl

X

_layouts/15/images/siteicon.png

webPermMasks

X

Object with properties
High & Low

webTitle

X

Test

 

from http://rambabuinsharepoint.blogspot.com.au/2015/11/sppagecontextinfo-properties-in.html

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: