Skip Navigation

[Résolu] Animation effect not working after view results update using taxonomy filters

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem: I would like to trigger an animation effect after the results of a View are updated with AJAX. I would also like to fix a problem where pagination reloads the page, even though I have selected AJAX pagination updates.

Solution: Use the Frontend Events button in the Search and Pagination JS editor to create event listeners that will allow you to respond to search and pagination events with any custom JavaScript. The AJAX pagination issue seems to be a problem with the custom theme that should be addressed by a JavaScript developer.

This support ticket is created Il y a 6 années et 4 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Ce sujet contient 7 réponses, a 2 voix.

Dernière mise à jour par vimalS Il y a 6 années et 4 mois.

Assisté par: Christian Cox.

Auteur
Publications
#956361

lien caché

On this page you can see the animation effect on images..now you can see when you check any checkbox in filter results will be updated but Images are not displaying.

#956415
Screenshot_1.png

Also, When I click on next/previous button it refreshes the page.Instead of ajax.
See screenshot for the views settings.

#956625

On this page you can see the animation effect on images..now you can see when you check any checkbox in filter results will be updated but Images are not displaying.
You can trigger any custom JavaScript after the results have been updated. In this View's Search and Pagination editor, toggle open the JS panel. Click the button "Frontend Events" to insert an event listener for different search or pagination events. Inside those callbacks, you can trigger the animation effects.

When I click on next/previous button it refreshes the page.Instead of ajax.
I'm not able to replicate this behavior, the pagination system uses AJAX when I click the buttons. Are you using a specific browser I should test with? Can you try a different browser and see if the problem is still present?

#957120

I'm not able to replicate this behavior, the pagination system uses AJAX when I click the buttons. Are you using a specific browser I should test with? Can you try a different browser and see if the problem is still present?

-- I have tried with FF and chrome in both browser problem persist.

#958287

Okay thank you, I'm able to reproduce the issue now. Not sure why I was having trouble last week. Please try these troubleshooting steps first:
- Temporarily deactivate all plugins except Types and Views, then activate a default theme like Twenty Seventeen. Test the View again. You can insert the View on a different page if necessary.
- If pagination occurs with AJAX, reactivate your theme and plugins one by one until the problem returns.
- If pagination does not occur with AJAX, I'll need to take a closer look.

#958700

I have checked by deactivating plugins other than toolset & activated default theme and came to know that issue is with Genesis custom child theme.

#986401

Thanks for the update. This indicates there is some custom JavaScript in the theme that is causing a conflict with Toolset's pagination scripts. That could be a custom click handler, something implemented for tracking or other interaction effects, etc. My best advice is to iteratively remove pieces of the code from your custom child theme's JavaScript, then retest, to pinpoint the conflict. Our support policy - https://toolset.com/toolset-support-policy/ - states that we do not troubleshoot problems in custom themes for you, so this is something that will require a JavaScript developer.

#1069094

Thanks, It was custom js issue.