API DOCS

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

Class: xajaxRequest



Used to store and generate the client script necessary to invoke
a xajax request from the browser to the server script.

This object is typically generated by the <xajax->register> method
and can be used to quickly generate the javascript that is used
to initiate a xajax request to the registered function, object, event
or other xajax call.

variables

functions

xajaxRequest

function xajaxRequest($sName)

Construct and initialize this request.

sName - (string): The name of this request.

useSingleQuote

function useSingleQuote()

Call this to instruct the request to use single quotes when generating
the javascript.

useDoubleQuote

function useDoubleQuote()

Call this to instruct the request to use double quotes while generating
the javascript.

clearParameters

function clearParameters()

Clears the parameter list associated with this request.

addParameter

function addParameter()

Adds a parameter value to the parameter list for this request.

sType - (string): The type of the value to be used.
sValue - (string: The value to be used.


setParameter

function setParameter()

Sets a specific parameter value.


getScript

function getScript()

Returns a string representation of the script output (javascript) from
this request object. See also:

printScript

function printScript()

Generates a block of javascript code that can be used to invoke
the specified xajax request.

 



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