I want to implement lightbox through ajax. example usage given in the site http://www.huddletogether.com/projects/lightbox/ <a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
<script language="Javascript">
function CallAjax(url)
{
http=CreateXHTML();
http.open("GET", url, true);
http.onreadystatechange=function(){
if(http.readyState==4 && http.status==200)
{
alert(''); //Which div should i have to refer?
}
}
http.send(null);
}
</script>
