close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Methods for building dynamic filter searching

Thread began 9/04/2012 11:46 am by alnico431299 | Last modified 9/07/2012 2:00 pm by alnico431299 | 1931 views | 6 replies

alnico431299

Creating a search form with results page is not the issue here, that is pretty straight forward.
Upon selecting each filter...I would submit the form using jquery, not to difficult either.

The issue is getting the record count for all filters based on the returned recordset; all in a single operation; without having to fire off two repetitive (wasteful) queries (one for the results page and the other, filter counts; both share a large part of the same query).

Here is an example...

database table: worldFlags
====================
1 America
2 Britain
3 Canada

Filters (initial state):
===============
Red (0)
White (0)
Blue (0)
Green (0)

Filters (state after selecting Blue):
==========================
Red (3)
White (3)
Blue (2)
Green (0)

Records returned matching Blue:
=========================
1 America
2 Britain

Each time a filter is selected it must return two sets of information...the Records that match the query and the counts for that recordset.

So, back in my original post I describe some methods that could be used???

Hopefully you understand what I am trying to accomplish ;-)

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...