I am updating jQuery fancybox as follows:
$(document).ready(function() {
$("#help").fancybox({
'width': '90%',
'height': '90%',
'autoScale': true,
'transitionIn': 'elastic',
'transitionOut': 'none',
'titleShow': false,
'type': 'iframe'
});
});
However, on the transfer / postback page, it is registered several times, which slows it down to the point of hacking. Is there a way to check if an event is registered, and if not, register it?
Pseudocode:
//check if fancybox has not been registered
if($("help").fancybox == null))
{
//register fancy box
}
source
share