Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (43 sloc) 1013 Bytes
* Example of Using HTML_AJAX_Action see support/testHaa.class.php
* @category HTML
* @package AJAX
* @author Joshua Eichorn <>
* @copyright 2005 Joshua Eichorn
* @license LGPL
* @version Release: @package_version@
* @link
// include the helper class
require_once 'HTML/AJAX/Helper.php';
// create an instance and set the server url
$ajaxHelper = new HTML_AJAX_Helper();
$ajaxHelper->serverUrl = 'auto_server.php';
$ajaxHelper->jsLibraries[] = array('haserializer');
$ajaxHelper->stubs[] = 'testHaa';
echo $ajaxHelper->setupAJAX();
<script type="text/javascript">
var remote = new testHaa();
<style type="text/css">
.test {
color: red;
<div id="test">
I'm some test content
<li><a href="#" onclick="remote.updateClassName()">Update className</a></li>
Jump to Line
Something went wrong with that request. Please try again.