Skip Navigation

[Resolved] AJAX Title search not working interactively

This support ticket is created 7 years, 2 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by beatR 7 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#566568

I am trying to:
Have an interactive AJAX search of title of custom post type

Link to a page where the issue can be seen:
hidden link

I expected to see:
changing result

Instead, I got:
no changing result. only if i put a search-button and search the string

#566645

Dear Beat,

I assume we are talking about the search box outputted from shortcode [wpv-filter-search-box]
It is expected result, it does not trigger the AJAX search by default, when you input some keyword in it, you will need to press "Enter" key.
As a work around, you can edit the view, find and edit the shortcode [wpv-filter-search-box], add attribute class="js-wpv-filter-trigger" in it, for example:
[wpv-filter-search-box output="bootstrap" class="js-wpv-filter-trigger"]

Then after you input some keyword in the search box, click other empty area, it will be able to trigger the AJAX search too.

#566828

Thank you! It was also ment as a suggestion to make it at least optional. But i can imagine it's not quite trivial (would be something like the new plugin-search in wordpress).

I will probably use other techniques in this case, i can simply load all records in frontend and filter there on-the-fly, much faster anyway.

thanks!