<?php include_once '../doc-typo3-funcs.php'; $doxygen_vars = array( "title" => "TYPO3 4.0.1: t3lib_ajax Class Reference", "datetime" => "Sat Dec 2 19:25:43 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?> <!-- Generated by Doxygen 1.4.6 --> <div class="tabs"> <ul> <li><a href="main.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li id="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> <li> <form action="search.php" method="get"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td><label> <u>S</u>earch for </label></td> <td><input type="text" name="query" value="" size="20" accesskey="s"/></td> </tr> </table> </form> </li> </ul></div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul></div> <h1>t3lib_ajax Class Reference</h1><!-- doxytag: class="t3lib_ajax" --><a href="classt3lib__ajax-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__ajax.html#308782c747012218371e4bd1857192f8">getJScode</a> ($handlerFunction, $fallback='', $debug=0)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__ajax.html#da0a27e48fcf197e10366362571db32a">outputXMLreply</a> ($innerXML)</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> <p> <p> Definition at line <a class="el" href="class_8t3lib__ajax_8php-source.html#l00047">47</a> of file <a class="el" href="class_8t3lib__ajax_8php-source.html">class.t3lib_ajax.php</a>.<hr><h2>Member Function Documentation</h2> <a class="anchor" name="308782c747012218371e4bd1857192f8"></a><!-- doxytag: member="t3lib_ajax::getJScode" ref="308782c747012218371e4bd1857192f8" args="($handlerFunction, $fallback='', $debug=0)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">t3lib_ajax::getJScode </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">$ </td> <td class="mdname" nowrap> <em>handlerFunction</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>$ </td> <td class="mdname" nowrap> <em>fallback</em> = <code>''</code>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>$ </td> <td class="mdname" nowrap> <em>debug</em> = <code>0</code></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> 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 <a class="el" href="template_8php-source.html">template.php</a> -> getContextMenuCode and <a class="el" href="alt__clickmenu_8php-source.html">alt_clickmenu.php</a> -> printContent<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>JS function handling the XML data from the server. That function gets the returned XML data as parameter. </td></tr> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>JS fallback function which is called with the URL of the request in case ajax is not available. </td></tr> <tr><td valign="top"></td><td valign="top"><em>boolean</em> </td><td>If set to 1, the returned XML data is outputted as text in an alert window - useful for debugging, PHP errors are shown there, ... </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>string JavaScript code needed to make and handle an XMLHTTP request </dd></dl> <p> Definition at line <a class="el" href="class_8t3lib__ajax_8php-source.html#l00059">59</a> of file <a class="el" href="class_8t3lib__ajax_8php-source.html">class.t3lib_ajax.php</a>. <p> Referenced by <a class="el" href="template_8php-source.html#l01246">template::getContextMenuCode()</a>. </td> </tr> </table> <a class="anchor" name="da0a27e48fcf197e10366362571db32a"></a><!-- doxytag: member="t3lib_ajax::outputXMLreply" ref="da0a27e48fcf197e10366362571db32a" args="($innerXML)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">t3lib_ajax::outputXMLreply </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">$ </td> <td class="mdname1" valign="top" nowrap> <em>innerXML</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Function outputting XML data for <a class="el" href="namespaceTYPO3.html">TYPO3</a> ajax. The function directly outputs headers and content to the browser.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>$innerXML XML data which will be sent to the browser </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>void </dd></dl> <p> Definition at line <a class="el" href="class_8t3lib__ajax_8php-source.html#l00117">117</a> of file <a class="el" href="class_8t3lib__ajax_8php-source.html">class.t3lib_ajax.php</a>. <p> Referenced by <a class="el" href="alt__clickmenu_8php-source.html#l01699">SC_alt_clickmenu::printContent()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li>typo3_src-4.0.1/t3lib/<a class="el" href="class_8t3lib__ajax_8php-source.html">class.t3lib_ajax.php</a></ul> <?php include_once '../doc-typo3-funcs.php'; get_footer(); ?>