Scripts: Javascript :: Ajax functions :: Library Article #17
Developer's Section
Update webpages using AJAX By: Erobo Team Member
|
||||||||||||||
Learn to update webpages dynamically using AJAX.
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: |
||||||||||||||
|
||||||||||||||
See other Scripts in Ajax functions |
Submit Your Scripts: |
System Message:
|
If you would like to have your Javascripts published in this section please fill out the form below: |