edd12345678 Posted February 1, 2012 Share Posted February 1, 2012 Hi Guys, Not sure if this an be done but is it possible to check if a shadow box is closed by the user? The reason I ask is that I need to end a session variable depending on weather they have closed the window or not. Thanks in advance. Edd Quote Link to comment https://forums.phpfreaks.com/topic/256179-check-if-a-shadow-box-is-closed/ Share on other sites More sharing options...
Adam Posted February 1, 2012 Share Posted February 1, 2012 Shadow box? Quote Link to comment https://forums.phpfreaks.com/topic/256179-check-if-a-shadow-box-is-closed/#findComment-1313292 Share on other sites More sharing options...
scootstah Posted February 1, 2012 Share Posted February 1, 2012 Assuming you are talking about this, you can use onClose A hook function that will be fired when Shadowbox closes. The single argument of this function will be the gallery element that was last displayed. Quote Link to comment https://forums.phpfreaks.com/topic/256179-check-if-a-shadow-box-is-closed/#findComment-1313369 Share on other sites More sharing options...
edd12345678 Posted February 4, 2012 Author Share Posted February 4, 2012 Thanks thats sorted it after a bit of research. Quote Link to comment https://forums.phpfreaks.com/topic/256179-check-if-a-shadow-box-is-closed/#findComment-1314402 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.