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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
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, > senthilIn 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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> 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 received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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.
On Mar 12, 10:30 am, javier ramirez
<jrami...-7iWCczGtl7hBDgjK7y7TUQ@public.gmane.org>
wrote:> > 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
visitahttp://www.gastosgem.com!!Es gratis!!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---