.genericHostVar()

Previous Next

Assigns a value to a generic host variable. A generic host variable is a host variable (a name-value pair) that is needed in multiple actions or events. A host variable that is not generic is temporary. See Host Variables for more detail.

Returns the 'this' object.

Syntax

.genericHostVar( namevalue )

The required name is the name of the variable. The required value is the value being assigned to it.

Generic host variables and their values are valid and included in every PageEngine call until removed with the $.udb.clearGenericHostVars() function, or until you navigate to another page.

 

Examples

$.udb.genericHostVar("ID","242")

 
$.udb.genericHostVar("NAME","Jones")

 

See also

Host Variables

.clearGenericHostVars()