Over a million developers have joined DZone.

Ultra Simple Prototype.js AJAX Example

·
Taken from the great Amy Hoy.

ajax replacing link

This link updates a line
With no JavaScript turned on, it'll go to the normal URL. Without, it'll do an XMLHTTPRequest and put the result in #testdiv.
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}