Scripts: Javascript :: AJAX functions :: Library Article #17
Developer's Section
![]() By: Erobo Team Member
|
||||||||||||||
![]()
In the following example we will learn how to use an ajax.updater object to update the content of a div with the content of a page from your server. In this case the updatable div will be loaded with the contents of a random PHP page ( a.php ). The updatable div will then change table colors and show an update id number when you click update.
To accomplish this you will need to download the prototype.js and scriptaculous.js libraries. (These libraries allow us to create the ajax.updater object). See at the end of this tutorial for downloads. Now, let's take a look at the code: |
||||||||||||||
|
||||||||||||||
![]() |
|
![]() the form below: |