Thursday, 13 March 2014

Fancybox in Updatepanel

Please replace following code
----------------------------------------
$(document).ready(function () {
            $(".various3").fancybox({
                'width': '99%',
                'height': '99%',
                'autoScale': false,
                'transitionIn': 'none',
                'transitionOut': 'none',
                'type': 'iframe',
                'hideOnOverlayClick': false
            });
        });

By
---
function pageLoad(sender, args) {
            $(".various3").fancybox({
                'width': '99%',
                'height': '99%',
                'autoScale': false,
                'transitionIn': 'none',
                'transitionOut': 'none',
                'type': 'iframe',
                'hideOnOverlayClick': false
            });
        }