Solutions Open Source

Référence de la classe t3lib_ajax

Liste de tous les membres

Fonctions membres publiques

 getJScode ($handlerFunction, $fallback='', $debug=0)
 outputXMLreply ($innerXML)


Documentation des fonctions membres

t3lib_ajax::getJScode ( handlerFunction,
fallback = '',
debug = 0 
)

Gets the JavaScript code needed to handle an XMLHTTP request in the frontend. All JS functions have to call ajax_doRequest(url) to make a request to the server. USE: See examples of using this function in template.php -> getContextMenuCode and alt_clickmenu.php -> printContent

Paramètres:
string JS function handling the XML data from the server. That function gets the returned XML data as parameter.
string JS fallback function which is called with the URL of the request in case ajax is not available.
boolean If set to 1, the returned XML data is outputted as text in an alert window - useful for debugging, PHP errors are shown there, ...
Renvoie:
string JavaScript code needed to make and handle an XMLHTTP request

t3lib_ajax::outputXMLreply ( innerXML  ) 

Function outputting XML data for TYPO3 ajax. The function directly outputs headers and content to the browser.

Paramètres:
string $innerXML XML data which will be sent to the browser
Renvoie:
void


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Fri Aug 31 11:41:57 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3