Implementing Lightbox
Posted: Thu Jul 17, 2008 7:56 pm
~pickle | Please use [ code=html ], [ code=php ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:
Posting Code in the Forums to learn how to do it too.
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>
In the link page i am using, <a href="javascript:void(0);" onClick="CallAjax($url)">lightbox link</a>
~pickle | Please use [ code=html ], [ code=php ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:
Posting Code in the Forums to learn how to do it too.
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>
Code: Select all
<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>~pickle | Please use [ code=html ], [ code=php ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: