What are some good resources for building a jQuery based JSON search/filter system?
-
My current web application is using jQuery's $.getJSON() to obviously return some data from my mysql db and then present it in html div form. I want to build (over time while learning) a somewhat robust (at least to me) client side filter/search system that can do things like filter based on categories, tags, input, check boxes,etc. (applying multiple filters at once). But also do things like pinning/favoriting objects to stay in result and/or compare independently. I am looking for any books, online tutorials, or similar existing plugins/open source code. Thanks!
-
Answer:
http://www.datatables.net/ Explore this and you will get more help to add more filters (checkbox, radiobox, combo etc)
Naveed Ramzan at Quora Visit the source
Other answers
Well, if you know AJAX, it is too easy to make such a filter. And no plugins needed.Lets take an example:We have a table with our client names and some additional data: Now, if an admin want to search a specific criteria, where a client still have more than 2000$ as payment for our company, we create a drop list with multiple values. Then, we send the chosen value into PHP script, using AJAX call. We will take this value and add it into a search query, then, we send back results into AJAX, in a json array.Finally, we use $.each() inside success function of ajax to display all returned row, in the same page, using a function called append().If you want a live example, I have videos about it on youtube:And you can watch the full successful series on Udemy (more than 1200 students):https://www.udemy.com/ajax-calls-the-simplest-way/?couponCode=clientsideScroll down to section 8 and watch how to make advanced search filters.
Alex Mehdy
Related Q & A:
- What are some good competitive problems for a programming contest?Best solution by Programmers
- What are some good summer jobs for a teenager?Best solution by Yahoo! Answers
- What are some good tips on planning a senior trip to Paris, at 18 ,and no parents?Best solution by Yahoo! Answers
- What are some good strategies for getting a job?Best solution by Quora
- What are some good 6x9 speakers with a good bass response?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.