Class appjet
The global appjet object contains access to the AppJet runtime, app meta-data, and other information.
Defined in: <global\appjet.js>.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
appjet()
This is the interface to the native AppJet VM.
|
| Field Attributes | Field Name and Description |
|---|---|
| <static> |
appjet.appName
Holds the name of the current app.
|
| <static> |
appjet.encodedAppKey
The current app's encoded app key.
|
| <static> |
appjet.isPreview
Holds whether the current request is a preview request.
|
| <static> |
appjet.isShell
Holds whether we are currently executing in a shell session.
|
| <static> |
appjet.isTransient
Holds whether the app is "transient", that is, created by a user
without an account.
|
| <static> |
appjet.mainDomain
The domain this app is running on.
|
Field Detail
<static>
{String}
appjet.appName
Holds the name of the current app.
<static>
{number}
appjet.encodedAppKey
The current app's encoded app key. This is useful for constructing
links to AppJet pages, such as http://appjet.com/app/<appKey>/source.
<static>
{boolean}
appjet.isPreview
Holds whether the current request is a preview request.
<static>
{boolean}
appjet.isShell
Holds whether we are currently executing in a shell session.
<static>
{boolean}
appjet.isTransient
Holds whether the app is "transient", that is, created by a user
without an account.
<static>
{string}
appjet.mainDomain
The domain this app is running on. For app "foo" hosted at
"foo.appjet.net", for example, this will be "appjet.net".
When AppJet eventually supports hosting at other domains, this
may be something other than "appjet.net".