-
AuthorPosts
-
October 18, 2018 at 5:42 am #1023145
Hi – I’m using a plugin called ProfileGrid to manage and display user profiles. It comes with a customer-facing user directory; a listing of all the users. The listing is paginated, with ajax links to load the contents of the the next page.
When clicking one of these links, I get redirected to a blank admin page containing only a “0”. https://my-domain.com/wp-admin/admin-ajax.php?pagenum=2
I contacted the plugin author and they are stating there’s a conflict with something that Enfold is doing. Here’s what they said:
ProfileGrid plugin uses hyperlinks to load next page data via ajax. In the JS function it uses event.preventDefault() to restrict the page load behaviour of hyperlink. It is still loading the page. It seems like theme is registering callback with each link which is causing this reloading behaviour.
Is there something I can do to override / prevent this behavior?
October 18, 2018 at 6:42 pm #1023558Hey TJ,
Can you give us the link to the page where it is happening?
Best regards,
VictoriaOctober 27, 2018 at 4:09 pm #1027069Hi – Sorry for the delay! This is a private page. I’ve posted login info below.
October 27, 2018 at 6:36 pm #1027146Hi TJ,
Well, the link generated is incorrect, but it’s not Enfold. You might want to look at the plugin docs or support forums.
Best regards,
VictoriaOctober 27, 2018 at 8:17 pm #1027189Hi. Thanks for looking at this. I’ve been back and forth with the plugin author many times. I’m pretty sure this is an Enfold issue. It works fine if I remove the theme.
When the link is clicked, the plugin submits an AJAX POST request to https://www.runnersedgeoftherockies.com/wp-admin/admin-ajax.php with some form data (page_id, pagenum, etc), but before the request completes, Enfold takes the same URL and submits a GET request – which is where the error comes from. How do I prevent Enfold from listening / overriding this link click?
Thanks!
TJ
October 27, 2018 at 8:28 pm #1027195Some more info…I just disabled Enfold page transitions and now it’s working. What is it about the page transitions that mucks with AJAX requests?
October 31, 2018 at 2:07 am #1028327 -
AuthorPosts
- You must be logged in to reply to this topic.