I'm using the Fancybox plugin for my modal windows. It seems like no matter what options I use I can't prevent the fancybox modal window from closing when the user clicks outside of the fancybox modal window (grayed out area).
Is there a way to force the user to click the X or a button that I trigger the close event? This seems like it should be simple so I'm hoping I'm just reading the examples wrong.
I've tried hideOnContentClick: false
but that doesn't seem to be working for me. Any ideas?
Just add following line to your function, you do not have to change anything in jquery.fancybox-1.2.6.js
You can set the default closeClick on the overlay to false. Has worked for me in version 2.1.5.
For this issue, please try this way
Hope this helps.
none of the above worked for me, so i just wrote a simple bit for latest version of fancybox.
Hope this helps :)
you can prevent the fancy box to close by applying these setting
get the fancybox setting from following link
http://www.fancybox.net/api