Re: LightBox click detection

From: Date: Fri, 14 Jun 2013 15:02:50 +0000
Subject: Re: LightBox click detection
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-321406@lists.php.net to get a copy of this message
$('.lightbox-image-class').click(function(){ $.post('ajax.php', {click: true}); }); and do your DB work in ajax.php http://api.jquery.com/jQuery.post/ On 14 June 2013 09:52, Tedd Sperling <tedd@sperling.com> wrote: > Hi gang: > > It's Friday so I am allowed to ask odd questions. > > Here's the problem -- I need to count the number of times a user activates a LightBox -- > how do you do that? > > Here's a LightBox Example: > > http://www.webbytedd.com/c2/lightbox/ > > All the javascript is there (jQuery et al). > > Ideally, I would like to have a php/javascript combination that would: > > 1. Detect when a user clicked the LightBox; > 2. Pass that value to PHP so I can keep count. > > Any ideas? > > Cheers, > > tedd > > _____________________ > tedd@sperling.com > http://sperling.com > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#321406) next »