Displaying 2 results from an estimated 2 matches for "search_start_station".
2006 Mar 22
1
Lightning Fast Javascript Auto complete
<%= javascript_tag("new
AutoCompleter.Local(''search_start_station'',''start_station_auto_complete'',
stations);") %>
I have <%= javascript_include_tag :defaults %> in the head of my
layout.
But I always get an Error: "AutoCompleter is not defined".
Im using Rails 1.0, so I should have the latest javascript fil...
2006 Mar 28
1
Passing the input name to "text_field_with_auto_complete"
...auto complete input boxes. How do I give the
input a name like I can for "text_input" helper?
I''ve looked at the docs
(http://api.rubyonrails.com/classes/ActionView/Helpers/JavaScriptMacrosHelper.html#M000462)
but cant make sense of it...
<p><label for="search_start_station">From</label><br/>
<%= text_field_with_auto_complete :station, :name %></p>
<p><label for="search_end_station">To</label><br/>
<%= text_field_with_auto_complete :station, :name %></p>
At the moment bot...