Forum: Ruby on Rails auto complete rjs problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
James R. (Guest)
on 2009-01-23 03:03
I want to use auto_complete plugin for a field.

I have a ajax call that loads a js partial that will insert into DOM a
text field with auto complete (the plugin will insert for me css styles,
an input, a div and a new Ajax.Autocompleter call).

The problem is it doesn't work, it seems the new letter event doesn't
trigger a new http request for in order to bring the list of matching
options.

Smaller problem: the input has a autocomplete=off attribute to disable
browser default search; this attribute is omitted when the input is
added with an ajax call.

(I succeeded making the auto_complete work when it's load in the page
from the begining, not later with an ajax call.)

Thanks
This topic is locked and can not be replied to.