addParam(parm, value)

Specifies the parameter name and its value to be passed to the server-side function, associated with current SimpleAjax object. You can run addParam more than once with different parameters and values.

Note: The server-side code does not execute until client script will not call getXML().

Parameter(s):

NameType
parmString
valueString


Return:

TypeDescription
VoidThis method does not return a value


Example:

var record_ajax = new SimpleAjax('incidents'); //Call script include
record_ajax.addParam('sysparm_name', 'assignedToMe');