Skip Navigation

[Resolved] Split: Alternative no-items-found – ajax refresh view bind javascript

This support ticket is created 3 years, 12 months ago. There's a good chance that you are reading advice that it now obsolete.

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by kemalS-2 3 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#2088185

Thank you for this answer but I got another problem that has to do with views, I use bootstrap tooltips in my view but when I use Ajax refresh they break.

I tried adding:

jQuery( document ).on( 'js_event_wpv_parametric_search_results_updated', function( event, data ) {
/**
* data.view_unique_id (string) The View unique ID hash
* data.layout (object) The jQuery object for the View layout wrapper
*/
jQuery('[data-toggle="tooltip"]').tooltip();
});

But it doesn't work.

#2088187

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Do you see any Javascript error on your browser's console - may be you will require to hook in the tooltip JS using the wp_enqueue_script hook.
=> https://developer.wordpress.org/reference/functions/wp_enqueue_script/

#2093989

My issue is resolved now. Thank you!