Latest news
Home » Tag Archives: Fancybox intilialization

Tag Archives: Fancybox intilialization

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>

Read More »