Latest news
Home » javaScript » Fancybox intilialization and content loading from a URL

Fancybox intilialization and content loading from a URL

<script type=”text/javascript”>
jQuery(‘document’).ready(function() {
jQuery(‘#delete’).click(function(e) {
e.preventDefault();
var selected_ids = new Array();
jQuery(“input:checkbox:checked”).each(function(){
selected_ids.push(jQuery(this).val());
});
if (selected_ids.length > 0){
var oDeleteUrl    = ‘<?php echo $this->baseUrl();?>/messages/delete/message_ids/’+selected_ids+’/place/inbox’;
             jQuery(“#delete”).fancybox({
                ‘type’: ‘ajax’,
                ‘href’ : oDeleteUrl
            });
}
});
});

</script>

Leave a Reply

x

Check Also

How to Check Expired Sessions using jQuery Ajax and PHP

We can achieve using the php and ajax.The following ajax call execute in every 10 ...