ajax form submission

hi,
  i have popup input field that is address when i enter address and
submit a button then it need to save with out refreshing the page.
it may use javascript or ajax.how can i store the address field in my
table without refreshing the page.
please clarify me.

thankyou

This should help:
http://edgeguides.rubyonrails.org/working_with_javascript_in_rails.html