simple-lightbox icon indicating copy to clipboard operation
simple-lightbox copied to clipboard

Add-On: AJAX Content Loading (Infinite Scroll, etc.)

Open archetyped opened this issue 11 years ago • 13 comments

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

archetyped avatar Jun 03 '14 07:06 archetyped

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 avatar Jun 03 '14 10:06 henriquerick

@henriquerick It's been added to the list of candidates. Thanks!

archetyped avatar Jun 04 '14 23:06 archetyped

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

cma139 avatar Jun 10 '14 14:06 cma139

I'm using Search & Filter Pro. If there's a way to manually initialize SLB I'd be OK with that too.

thame avatar Jun 28 '15 04:06 thame

Thanks @cma139 and @thame, I've added those to the list.

archetyped avatar Jun 30 '15 23:06 archetyped

i want use views with ajax pagination with simple-lightbox

https://wp-types.com/documentation/user-guides/views-pagination/

thanks

guyk6 avatar Jul 01 '15 06:07 guyk6

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 :-)

decodekult avatar Jul 01 '15 10:07 decodekult

Thanks @guyk6, I've added Views to the list. Thanks for additional details @decodekult.

archetyped avatar Jul 02 '15 22:07 archetyped

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).

milsorm avatar Jul 12 '15 15:07 milsorm

Search & Filter Pro please!

Caroline-Elisa avatar Nov 01 '16 13:11 Caroline-Elisa

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?

rdlmda avatar Jun 12 '17 02:06 rdlmda

...did any of these happen? Using Search & Filter Pro and the Lightbox won't work once results are filtered.

SimeonGriggs avatar Mar 07 '18 22:03 SimeonGriggs

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.

SadRebel1000 avatar Dec 13 '18 21:12 SadRebel1000