Is it possible to filter the view as you type? If you have text field with a view displayed below it, can you update the view's contents as you type?

You can see this type of things with table row filters.

Here is an example:
http://gregweber.info/projects/demo/flavorzoom.html

Comments

danielb’s picture

Category: support » feature

nope

danielb’s picture

The reason I'm keeping this issue open is because it would be cool if that was possible. I really don't see it happening with the results as a whole because of paging, multiple elements, and other potential complications. I do think it would be possible to create something like this as a Finder Element with a form widget that is a hybrid of autocomplete and select lists and an ajax table thing.
Then you just need an option to remove the submit button, and some extra styles, to replicate that form exactly.

danielb’s picture

I'm adding an option to hide submit buttons in the next version. One step at a time I guess.

gmclelland’s picture

Here is another example: http://freefreeze.biz/newUI.html

It is provided by this module:
http://drupal.org/project/dynosearcho

Is it possible to recreate the live search that is shown in the video with Finder?

danielb’s picture

Thanks mate I'll check out that module soon.

gmclelland’s picture

Version: 6.x-1.0-beta3 » 6.x-1.2

Here is another example.
http://plone.org/products/plone/features/3.0/existing-features/livesearch

In case your interested.

parrottvision’s picture

I am guessing you mean like drupalmodules website? The module finder?

danielb’s picture

Title: Filter as you type? » Element handler: Filter as you type
Priority: Normal » Minor
Status: Active » Needs work
danielb’s picture

Version: 6.x-1.2 » 6.x-1.x-dev
Component: User interface » Code
danielb’s picture

I've been thinking that this sort of project could be useful for a whole bunch of modules, not just finder. I wonder perhaps a module can be made to convert select lists into something like this on the fly. That might be worth looking into!

danielb’s picture

Status: Needs work » Active

ok scratch that, i've seen some of your other examples and I think i've got the wrong idea, it would be better to ajax the results based on typing in a textfield - might be a nice addition to the finder text module... just have to work out the nicest way to implement it.
some of your examples are achievable just with a themed autocomplete - but I do realise I need to provide more options for that too
still the thing I was talking about could be alright too

mpaler’s picture

Wondering how exactly one might theme the autocomplete dropdown...

Answer:

read the finder_autocomplete.module

danielb’s picture

Status: Active » Postponed

@#12: also follow the documentation link on the project page for this module

Postponing this issue for now as we need to get some more basic features working better first.

danielb’s picture

Version: 6.x-1.x-dev » 7.x-2.x-dev
danielb’s picture

My new plan for this is as follows:
- Have the results() function (?) regardless of the setting "Show results" output a container, which can be updated via ajax.
- Create a callback to update the results based on form_state or whatever
- Have an option to load the results via ajax rather than together with the page load.
- Have an option to update the results when the form changes... then come up with a whole bunch of triggers to facilitate this.

I can't help but think that this is going to get abused by people with complicated finders and complain it's too slow, but oh well..

danielb’s picture

Priority: Minor » Normal
Status: Postponed » Active
danielb’s picture

Title: Element handler: Filter as you type » Update results as you type
danielb’s picture

Status: Active » Fixed

solved

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.