API DOCS
Class: xajaxCall
Create a piece of javascript code that will invoke the <xajax.call>
function.
This class is deprecated and will be removed in future versions; please use
<xajaxRequest> instead.
variables
functions
xajaxCall
function xajaxCall($sFunction = '')
Initializes the xajaxCall object.
setFunction
function setFunction($sFunction)
Override the function name set in the constructor.
clearParameters
function clearParameters()
Clear the list of parameters being accumulated for this
call.
addParameter
function addParameter($sParameter, $bUseQuotes = true)
Adds a parameter to the list that will be specified for the
request generated by this
addFormValuesParameter
function addFormValuesParameter($sFormID)
Add a parameter value that is the result of calling
for the specified form.
setMode
function setMode($sMode)
Sets the mode that will be specified for this
setRequestType
function setRequestType($sRequestType)
Sets the request type which will be specified for the
generated
setResponseProcessor
function setResponseProcessor($sResponseProcessor)
Sets the name of the javascript function that will be used
to process this response. This is an advanced function, use
with caution.
setRequestURI
function setRequestURI($sRequestURI)
Override the default URI with the specified one.
setContentType
function setContentType($sContentType)
Sets the content type that will be used by the generated request.
setReturnValue
function setReturnValue($sReturnValue)
Sets the value that will be returned after the generated call.
Set to an empty string if no return value is desired.
generate
function generate()
Construct a
to make a xajax request with the parameters and settings previously
configured for this
The output from this function can be used as an event handler in your
javascript code.
