# Launch action after auto\_complete\_for text field has been va

**URL:** <https://www.ruby-forum.com/t/launch-action-after-auto-complete-for-text-field-has-been-va/87510>\
**Category:** Ruby\
**Created:** [March 3, 2007, 5:32am UTC](https://www.ruby-forum.com/t/launch-action-after-auto-complete-for-text-field-has-been-va/87510 "2007-03-03T05:32:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f9ae1b/32.png) [@nick](https://www.ruby-forum.com/u/nick)\
**Post date:** [March 3, 2007, 5:32am UTC](https://www.ruby-forum.com/t/launch-action-after-auto-complete-for-text-field-has-been-va/87510/1 "2007-03-03T05:32:11Z")

</div>

Dear all,

I have a text field that auto completes with a city name using the  
auto\_complete\_for method. I also have a Google Map control on the same  
page. Now when the user selects his city from the auto complete text  
field I would like to automatically recenter the google map. I have  
the lat long data saved in a mysql database.

Is this possible ?

Thanks,

Nick,
