You don't need ajax to dynamically get and display an image, since Ajax is used to retrieve once impossible information that is an entire external page. So to answer your question:
Code:
<script type="text/javascript">
function displayimage(url, container){
document.getElementById(container).innerHTML='<img src="'+url+'"/>'
return false
}
</script>
<div id="test">
</div>
<a href="#" onClick="return displayimage('http://news.com.com/i/ne05/hdrs/newslogo_220x70.gif', 'test')">Show it</a>
As you can see, no Ajax.
Bookmarks