{ include 'support/livesearch.class.php'; $this->registerClass(new livesearch()); } // init method for the testHaa class, includes needed files an registers it for ajax, directly passes in methods to register to specify case in php4 function initTestHaa() { include 'support/testHaa.class.php'; $this->registerClass(new testHaa(), 'testHaa', array('updateClassName', 'greenText', 'highlight', 'duplicate')); } } // create an instance of our test server $server = new TestServer(); // init methods can also be added to the server by registering init objects, this is useful in cases where you want to dynamically add init methods class initObject { // init method for the test class, includes needed files an registers it for ajax function initTest2() { include 'support/test2.class.php'; $this->server->registerClass(new test2()); } } $init = new initObject(); $server->registerInitObject($init); // you can use HTML_AJAX_Server to deliver your own custom javascript libs, when used with comma seperated client lists you can // use just one javascript include for all your library files // example url: auto_server.php?client=auto_server.php?client=Util,Main,Request,HttpClient,Dispatcher,Behavior,customLib $server->registerJSLibrary('customLib', 'customLib.js', './support/'); // handle requests as needed $server->handleRequest();