Submit form without page refresh


#1

I’m looking for an ajax script from submitting a form without page
refresh. The script should have these abilities:

  1. Submit form without page refresh
  2. Display loading icon (or some text) while the script processing the
    code
  3. Display different message if the form has submitted successfuly,
    and different if it doesn’t.

Can anyone help?


#2

On May 30, 9:21 pm, suki removed_email_address@domain.invalid wrote:

I’m looking for an ajax script from submitting a form without page
refresh. The script should have these abilities:

  1. Submit form without page refresh
  2. Display loading icon (or some text) while the script processing the
    code
  3. Display different message if the form has submitted successfuly,
    and different if it doesn’t.

the form_remote_tag/remote_form_for helpers can do this.

Fred