Reserved $ Variables

Description

The Alpha Anywhere JavaScript library contains several reserved variables that begin with a $, including $ which is shorthand for document.getElementById (not jQuery).

Discussion

The following variables are objects in the Alpha Anywhere client-side JavaScript library:

Variable
Description
$

$() function. Shorthand for document.getElementById()

$n

$n() function. Short for document.getElementByName().

$u

$u namespace for utility functions for working with arrays, numbers, and strings in the Alpha Anywhere core JavaScript library.

$e

$e namespace for event functions in the Alpha Anywhere core JavaScript library.

$if

$if() function for evaluating logical expressions to assign values to a variable. Similar to the JavaScript ternary conditional operator (condition ? isTrue : isFalse)

$po

$po() function for positioning elements.

$sor

$sor() function for sizing elements relative to each other.

$swto

$swto() function for scrolling the window to a specific element.

$acn

$acn() function for adding a class to one or more elements.

$gs

$gs() function for getting the inline style for an element.

$rcn

$rcn() function for removing a class from one or more elements.

$scn

$scn() function for setting the class for one or more elements.

$ss

$ss() function for setting inline styles.

$svs

$svs() function for setting the value of an element.

$ga

$ga() function for getting attribute values.

$sa

$sa() function for setting attribute values.

$gvs

$gvs() function for getting the value of an element