I have to following jquery lightbox code:
<script type="text/javascript">
$(function() {$('#largerview a').lightBox({
fixedNavigation:true,
overlayBgColor: '#444444',
overlayOpacity: 0.6,
imageLoading: '../images/loading.gif',
imageBtnClose: '../images/closelabel.gif',
containerResizeSpeed: 350,
txtImage: 'Imagem',
txtOf: 'de'
});});
</script>
which is called as follows:
<div id="largerview"><a href="/myimage.jpg">click for larger view</a></div>
I would now like to call lightbox using ajax. I have the following javascript function in my ajax code:
function operationcomplete()
{
if (xmlhttp.readyState==4 || xmlhttp.readyState=="complete")
{
//alert('Your transaction has been successful');
??????????
}
}
The question is what code should be included in place of ?????? to invoke lightbox.