Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #703
    Aurel Manea
    Participant

    Hi there.
    Very nice plugin. The only one that works ok on mobile AND desktop without any issues.
    However: Is it possible to use it with infinite scroll ?
    I need a callback function. On previous plugin it was:
    if(typeof doLightBox !== ‘undefined’ && typeof jQuery !== ‘undefined’){ doLightBox(); }

    but now I don’t know exactly what to use

    #705
    Bartosz
    Keymaster

    Hi Aurel,

    It’s definitely possible but it would require some modifiactions in front.js file of the plugin – the one that applies lightbox to selectors. You could try to use jquery .on function (http://api.jquery.com/on/) instead of
    $('a[rel*="'+rlArgs.selector+'"]').swipebox({
    or
    $('a[rel*="'+rlArgs.selector+'"]').prettyPhoto({
    depending on which script you are using.

    #706
    Bartosz
    Keymaster

    Or you could try to change:

    
    jQuery(document).ready(function($) {
    

    into something like:

    
    jQuery(document).on('mousedown', 'a[rel*="'+rlArgs.selector+'"]', function() {
    
    #708
    Aurel Manea
    Participant

    Actually I don’t know js. But it was quite a lot easier. I just copied all the front.js into the infinite scroll plugin function call and works like a charm :)

    Thanks

    #5028
    Jason Ossenmacher
    Participant

    I am using the infinit scroll plugin along with your responsive lightbox plugin. All works great except when you scroll down (paginate) to the next 10 posts load on my homepage. These posts or any below that load with infinite don’t display images when clicked in responsive lightbox (see on my site: http://181.224.138.203/~sweetcar/). I tried solutions mentioned in this thread with no luck. Any help on how to get this to work would be much appreciated.

    #5029
    Bartosz
    Keymaster

    This topic is a bit outdated, because now you have some tools builtin Responsive Lightbox.

    It should be enough to enable Custom Events in RL and leaving it’s default setting (AjaxComplete).

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.