Submitting aform using link_to_remote

Hi all,
I want ro submit form using link_to_remote , since i wnat to
pass all form parameters to back end i dont want to use send each value
in :with option.how to submit a form using link_ro_remote.
Can anyone help me out

with regards,
senthil

senthil wrote:

Hi all,
I want ro submit form using link_to_remote , since i wnat to
pass all form parameters to back end i dont want to use send each value
in :with option.how to submit a form using link_ro_remote.
Can anyone help me out

with regards,
senthil

In the case of link_to_remote, you have to pass each paramter back. A
better idea would be to use form_remote_tag which sends back all the
form parameters.

thanks,
Bins.

bins wrote:

senthil wrote:

Hi all,
I want ro submit form using link_to_remote , since i wnat to
pass all form parameters to back end i dont want to use send each value
in :with option.how to submit a form using link_ro_remote.
Can anyone help me out

with regards,
senthil

In the case of link_to_remote, you have to pass each paramter back. A
better idea would be to use form_remote_tag which sends back all the
form parameters.

thanks,
Bins.

Thanks bins,
But i am already using form_remote_tag, i dont want to use
submit_to_remote.I want to use link_to_remote to submit the whole form
.how to do this

thanks & regards,
senthil

  But i am already using form_remote_tag, i dont want to use 

submit_to_remote.I want to use link_to_remote to submit the whole form
.how to do this

actually there is a trick in the middle of both worlds… you declare
your form with a form_remote_tag, then you make a link_to_function to
fire the onsubmit of the form. That way you are getting all the
arguments of the form serialized without doing it yourself.

regards,

javier ramirez

Estamos de estreno… si necesitas llevar el control de tus gastos
visita http://www.gastosgem.com !!Es gratis!!

You can :submit option of link_to_remote.

If you want to submit a table called my_table contains fields just use
this

<%= link_to_remote( “<input type=button value=Submit style=‘font-size:
1.0em;’”,
:submit => “my_table”,
:url => {:controller =>
“controller”, :action => “action”} ) %>

wtih this inputs in the table are serialized and posted as form.