Problem:
I'm encountering difficulty in reinitializing JavaScript functions after dynamically loading content via AJAX on a custom archive page built with Toolset. I need to identify the event or trigger in JavaScript that signifies the completion of the AJAX call to correctly reinitialize the functions.
Solution:
For block views, there isn't a direct method to identify the completion of AJAX calls. However, if you switch to legacy views, you can trigger an event after AJAX filtering is completed. Follow the steps provided to enable legacy views and refer to the documentation for triggering JavaScript events after AJAX filtering:
- Enable legacy views via "Toolset > Settings > General."
- Utilize the method outlined in the Toolset forum to trigger events after AJAX filtering:
https://toolset.com/forums/topic/trigger-js-event-after-ajax-filtering-finished/#post-477382
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
This topic contains 1 reply, has 2 voices.
Last updated by 10 months ago.
Assisted by: Christopher Amirian.