Carl Youngblood
2006-Apr-27 05:45 UTC
[Rails] How to set value in text_field_with_auto_complete
I have a text_field_with_auto_complete that is working just fine, except that I''d like it to retain whatever value is posted to it when it reloads. I can''t find any API documentation on it. Does anyone here know offhand? Thanks, Carl
njmacinnes@gmail.com
2006-Apr-27 12:31 UTC
[Rails] How to set value in text_field_with_auto_complete
One simple way is to use an onchange event handler to make a cookie using javascript which stores the value. Then javascript can also retrieve the cookie onload. It depends on the requirements of your site whether this is sufficient though. -Nathan On 27/04/06, Carl Youngblood <carl@youngbloods.org> wrote:> I have a text_field_with_auto_complete that is working just fine, > except that I''d like it to retain whatever value is posted to it when > it reloads. I can''t find any API documentation on it. Does anyone > here know offhand? > > Thanks, > Carl > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >