# Difficulty with params hash and submit\_to\_remote

**URL:** <https://discuss.rubyonrails.org/t/difficulty-with-params-hash-and-submit-to-remote/7075>\
**Category:** rubyonrails-talk\
**Created:** [January 12, 2007, 3:50pm UTC](https://discuss.rubyonrails.org/t/difficulty-with-params-hash-and-submit-to-remote/7075 "2007-01-12T15:50:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Weinand1](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@Daniel\_Weinand1](https://discuss.rubyonrails.org/u/Daniel_Weinand1)\
**Post date:** [January 12, 2007, 3:50pm UTC](https://discuss.rubyonrails.org/t/difficulty-with-params-hash-and-submit-to-remote/7075/1 "2007-01-12T15:50:06Z")

</div>

try something like this:

rhtml: \<%= text\_field\_with\_auto\_complete :person, :nachname, {}, &nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;:select =\> 'name', &nbsp;&nbsp;&nbsp;:after\_update\_element =\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"function(element,value) " + &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"{ " + &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;remote\_function(:update=\>'Kundendaten', &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:url=\>{:action=\>:update\_kundendaten}, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:with=\>"'adr\_id='+value.id") + ";" + &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"}" &nbsp;&nbsp;} &nbsp;&nbsp;%\>

controller: def update\_kundendaten &nbsp;&nbsp;#params[:adr\_id] should be ok in controller end

but with this solution i have the problem that the autocomplete is only working on IE. FF wont show the autocomplete popup. ☹

HTH
