title: I want to log fancybox views in a mysql database
body: <p>I run fancybox beta v.3 and I have a gallery that I want to log views of.
  Every time a user opens the fancybox or click on another thumbnail/use the arrows to navigate to another gallery item I want to log it by sending an ajax request with ID to MySQL via PHP.</p>
  
  <p>I know how to do all of the logging, but I need help with where I will put my ajax code in the fancybox code. Is there a simple way of doing this?</p>
  
  <p>Thanks for help!</p>