AJAX - Javascript Function Library
AJAX : Overview | Reference | Quick Start | Examples | Download
Arrays : Overview | Reference | Download
Ajax : Examples : Changing an image's source url
This example invokes a request to Ajax_Random_Weather_Icon.aspx which returns a path to an image, it then changes the images SRC attribute to point to the new URL
View the source to see the javascript