Skip Navigation

[Waiting for user confirmation] Detect ajaxcomplete events

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 1 reply, has 1 voice.

Last updated by Minesh 1 hour, 13 minutes ago.

Assisted by: Minesh.

Author
Posts
#2841911

I am trying to run some javascript functions after a form submit using AJAX. (eg to dynamically update some other parts of the page), using the parameters retrned from ajaxcomplete:
jQuery(document).ajaxComplete(function (event, xhr, settings)

1. How do I detect/identify the events from the AjaxComplete callback parameters to make sure that this is the correct callback corresponding to the specific form submission?

2. Also is there any way to include some additional information from the server in the callback values that i can then use in my custom js

I recall there was some documentation on this a few years ago, but I cannot find it.

This page does not give any details:
https://toolset.com/documentation/programmer-reference/adding-custom-javascript-code-to-views-that-use-ajax/

#2841920

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

There is not much information available but as soon as you click on the "Frontend events" button you will see a popup where you can add the desired ajax hooks like:
- js_event_wpv_pagination_completed
- js_event_wpv_parametric_search_results_updated

Please check following links that may help you:
- hidden link
- hidden link