t3lib_ajax Klassenreferenz

Aufstellung aller Elemente

Öffentliche Methoden

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

Dokumentation der Elementfunktionen

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

Parameter:
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, ...
Rückgabe:
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.

Parameter:
string $innerXML XML data which will be sent to the browser
Rückgabe:
void

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:
 Alle Klassen Namensbereiche Funktionen Variablen

Erzeugt am Wed Oct 28 16:40:22 2009 für Typo3 von  doxygen 1.6.1