On Tuesday 23 May 2006 11:54, Mark McCray wrote: > Actually, > here's what i'm trying to do: > > I want the user to be able to type in some text in an input field and > i only want the ajax request to happen after the user has stopped > typing for 1 or two seconds. Kind of like how google suggest or > autocompleter works. I can't use the ajax autocompleter because we > have a specific requirement that makes the autocompleter not work for > us.
and what requirement might that be? I subclassed the autocompleter to make it handle the server returning an xml document instead of a bunch of li tags... if you can tell us what you need the autocompleter to do, perhaps we can help you do it. the reason I ask this is because the autocompleter already has that throttling built in, so why reinvent the wheel? (although, if in the end you really do have to reinvent the wheel, just check out the autocompleter's code and you'll find a good example) -Jeremy -- Jeremy Kitchen ++ [EMAIL PROTECTED] http://ipaction.org/ -- defend your rights to fair use
pgpxloqiqa36n.pgp
Description: PGP signature
_______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
