Manually open fancybox using fancybox.open on click

Posted: December 15, 2013 in web
jQuery("#button-compare").click(function() {
        jQuery.fancybox.open([
            {
                maxWidth: 800,
                maxHeight: 600,
                fitToView: false,
                width: '70%',
                height: '70%',
                autoSize: false,
                closeClick: false,
                openEffect: 'none',
                closeEffect: 'none',
                type: 'ajax',
                href: 'http://ents.com/json-details?complexId=' + getCompareIds(),
            }
        ]);
    });
Advertisements
Comments

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s