API DOCS

DOCS & TUTORIALS » API DOCS » xajax_core » xajaxCall.inc.php » xajaxCall

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 object.


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 statement in javascript that can be used
to make a xajax request with the parameters and settings previously
configured for this object.

The output from this function can be used as an event handler in your
javascript code.


 



XAJAX on SourceForge.net
Support this project Valid XHTML 1.0 Transitional