Add-On: AJAX Content Loading (Infinite Scroll, etc.)
Different WordPress plugins implement content loading via AJAX differently (there is no standardized methodology). As a result, these plugins will need to be supported via add-ons for SLB.
Add-on development is prioritized by demand. If you would like this functionality, please vote for it by clicking on the 👍 in the corner of this post and add a comment to specify the plugin you would like SLB to support via an add-on.
Candidates
I'm using this simple loader: http://www.problogdesign.com/wordpress/load-next-wordpress-posts-with-ajax/
I had to do some changes on this plugin, but it still look like the original. Thanks
@henriquerick It's been added to the list of candidates. Thanks!
Hello,
I am using a plugin called roksprocket.
http://www.rockettheme.com/wordpress/plugins/roksprocket
In particular, I am using RokSprocket in the mosaic setting
I'm using Search & Filter Pro. If there's a way to manually initialize SLB I'd be OK with that too.
Thanks @cma139 and @thame, I've added those to the list.
i want use views with ajax pagination with simple-lightbox
https://wp-types.com/documentation/user-guides/views-pagination/
thanks
Hey there, this is the Views (the plugin requested above) lead dev. Just as a note, Views recently implemented some frontend events that you might find useful. Both of them are fired on the document object and are related to any AJAX functionality being completed:
- js_event_wpv_pagination_completed - for AJAX pagination
- js_event_wpv_parametric_search_results_updated - for AJAX parametric search
Hope it helps :-)
Thanks @guyk6, I've added Views to the list. Thanks for additional details @decodekult.
I am also loading part of the page through AJAX and it contains slb_activated images. But I cannot find any function which I can call from SLB for reinitializing on current HTML content (or for selected part of DOM tree).
Search & Filter Pro please!
I'm using both Jetpack's infinite scroll and Ajax Load More in different sections of my site.
SLB doesn't work with either. Using slb_activate() on the content doesn't work. Is there any init function that I can call for the current content or part of the DOM?
...did any of these happen? Using Search & Filter Pro and the Lightbox won't work once results are filtered.
I would like to express my interest in a solution for Ajax Load More. I use Simple Lightbox through the atachment pages of images. The posts loaded by Ajax Load More just open the attachment page and do not open the lightbox.