Difference between revisions of "Global JavaScript Variables"
From LongJump Support Wiki
imported>Aeric |
imported>Aeric |
||
Line 8: | Line 8: | ||
:* Variables names are case-sensitive | :* Variables names are case-sensitive | ||
:* Since no one is logged in a [[Sites|Site]], the variables have no meaning in that context. | :* Since no one is logged in a [[Sites|Site]], the variables have no meaning in that context. | ||
<noinclude> | |||
[[Category:JavaScript APIs]] | |||
</noinclude> |
Revision as of 18:30, 7 October 2011
The following JavaScript variables are global. They are available in all JavaScript code running on the platform:
- LJUserName
- Name of the (logged in) User
- LJPrimaryTeamName
- Name of the Primary Team (user is a member of this team)
- LJPrimaryTeamRoleName
- Role of the User in the Primary Team
- Considerations
-
- Variables names are case-sensitive
- Since no one is logged in a Site, the variables have no meaning in that context.