load data to div from a link with ajax
Posted on 2007-11-25
I have a simple html page with a link and a div at the foot of the page. I need to be able to clear the content of the div, and then render the contents of an external file (text, html or xml is fine) to this div.
Basically, when a user clicks on this link the div will be cleared and then populated with this new text. Is this possible with Ajax, or is there a better way? I need it to be dynamic (ie: no page refreshes).
Any examples of this type of action?
Any help appreciated.