AJAX and PHP

This is a simple AJAX example using JavaScript and PHP with some simple error handling. To update an object in the document use the function: runCodeBehind()

You will always need to include what HTML object to update. A call could look something like this: runCodeBehind('objectid=idofobject&param1=value&param2=aaa&param3=bbb') Check the links below for working examples. Also check the PHP source code to understand how to handle the calls from this page. Basically what you do is that you print an encoded URL on the php page. The client side JavaScript then reads that printed text and will hopefully do something with it.

Call AJAX Hello World or force an error by sending an unknown command, not sending any command or not specify what object to update.

Click one of the links above to update this text...
Create by Christoffer Lilja | Last modified: 2006-12-02 1:29AM