Ken,
You might want to look at the autocomplete code in Scriblio.
The JS is part of the theme:
http://svn.scriblio.net/theme/trunk/scripts/
The server side:
http://svn.scriblio.net/plugin/trunk/suggest.php
And you can actually try it here:
http://nov9.scriblio.net/browse/
About jquery.suggest.js: I had to modify Peter Vulgaris' excellent
class. The mods are commented but I should add some notes to the header.
--Casey
On Dec 17, 2007, at 3:30 PM, Ken Irwin wrote:
It occurs to me that I didn't specify much about my environment. I'm
using PHP + MySQL to do my searching, and hoping for AJAX to make it a
bit more dynamic. I don't have and am not at all familiar with Ruby on
Rails, so I'm mostly hoping for a lightweight JavaScript approach. I
did
download the Scriptaculous framework/library which I thought might do
the trick, but I've not figured out a way to make that work. (It seems
to be more into regular auto-completion rather than narrowing the
results display.
Ken
Ken Irwin wrote:
Hi folks,
I'm looking for what ought to be a straightfoward and easily-
available
code example to copy from: an html form that narrows its search
results on the fly based on user input. I've had no trouble finding
form-autocomplete functions that help the user find a search term,
but
I'm looking for something a little different. I want:
1. The textbox up here; user types content and the content of #2
narrows accordingly
----
2. A separate div with some fairly complicated entries based on the
search results down here in a separate div
Does anyone have some straightforward code for this? (I'm fairly
certain that Ch. 4 of /Ajax for dummies/ had a Google-search example
of this, but the sample code I downloaded for that a year ago has
ceased functioning, and I don't have the book in my possession right
now to re-download that book's examples.
And likewise: any favorite Ajax sites that give lots of examples +
code? I'm finding that to be less prevalent than I'd imagined...
Thanks!
Ken
--
Ken Irwin
Reference Librarian
Thomas Library, Wittenberg University
--
Ken Irwin
Reference Librarian
Thomas Library, Wittenberg University