I found a handy tutorial of building a stock lookup plugin for WordPress using HTML_AJAX. Shows how easy HTML_AJAX makes AJAX.
The only problem I see is the code won’t work in PHP5 since introspection will return the method name as GetQuote instead of getquote.
You can fix this by adding the following to the HTML_AJAX_Server instance.
// Create the HTML_AJAX Server $objServer = new HTML_AJAX_Server(); // Set php4 case compatability so this code will work in 4 or 5 $objServer->ajax->php4CompatCase = true;
// Create the HTML_AJAX Server $objServer = new HTML_AJAX_Server(); // Create an instance of our stock quote class $objStockLookup = new StockQuote(); // Register the stock quote object with the HTML_AJAX server $objServer->registerClass($objStockLookup,'StockQuote','GetQuote');