Hey Frank, You hold the title to Longest Thread Ever In This Group (28 posts with this one!).
frank a écrit : > It looks like it's working but there's one problem. The > 'returngoeshere' only updates after you click somewhere on the page > instead of as soon as you finish typing. Here's what it all looks like. Yes, this is because you go Event-based, and onchange triggers on blur, basically. Try removing Event (Form.Element.Observer), as I mentioned at the bottom of my solution. You shouldn't go too far below 1sec of interval, though. 1 sec is usually enough. > Also, shouldn't Autocompleter do exactly what I'm after? According to > the wiki, Autocompleter is to be used like so: Actually no. Autocompleter is designed to provide a list of completions based on the current typing, not detailed info on the current text. Unless what you intend to return *is* completion options (with or without details), in which case, you don't need Ajax.Updater at all, just Ajax.Autocompleter. However, you must then go with its flow (return a ul/li structure, possibly use rich li contents with "informal"-class'd elements, etc.). -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---
