Re: [PHP] LightBox click detection

[email protected] (Marc Guay)
Newsgroups php.general
Message-ID <CAL0DAJr9z=k8f0vDWwqhT85PcfqS87dBWqefkMSbPQFsh+EzQQ@mail.gmail.com>
Also, the docs and functionality for that particular plugin seem a bit
weak.  Maybe there's another one that has a "doneLoadingLightbox"
event that you could hook into and call your ajax script inside of...


On 14 June 2013 10:02, Marc Guay <[email protected]> wrote:
> $('.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 <[email protected]> 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
>>
>> _____________________
>> [email protected]
>> http://sperling.com
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.