I recently updated the homepage portfolio section with an Ajax filtering dropdown, allowing readers to filter my portfolio with different technologies and themes. However, that caused my old lightbox effect to lose ground somehow. After days of debugging, I found a way to deal with it, that is I had to manually reinstantiate the lightbox object on page load (clientside), because whenever Ajax fires up a postback, it wipes of the Lightbox entity that was created.
<script type="text/javascript">
function pageLoad() {
$('#gallery a.image-thumb').lightBox({ fixedNavigation: true });
}
</script>
If you think this post is useful, please recommend me at the bottom of the page. ;)