Problem:
How do we Insert the Frontend event handler, as we need to run some Javascript after each filter is used to effect the Custom search?
Solution:
Using blocks, you can go to the JavaScript tab in the side bar and add your code: https://toolset.com/course-lesson/adding-custom-javascript-to-views-templates-and-archives/
You can track when the filter is executed using 'js_event_wpv_parametric_search_results_updated', that should replace the need of running the code every X seconds.
Please check the explanation of my colleague here for further reference: https://toolset.com/forums/topic/javascript-call-back-function-of-scroll-to-top-map-while-using-ajax-pagination/#post-1437607
And here a skeleton of how you'd use js_event_wpv_parametric_search_results_updated: 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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
- | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | - |
Supporter timezone: America/Sao_Paulo (GMT-03:00)
This topic contains 1 reply, has 2 voices.
Last updated by 8 months, 3 weeks ago.
Assisted by: Mateus Getulio.