In a panel, I have an hidden input field which is modified by a javascript function (from calendar) how can I sent the value of this input field in my link_to_remote call ? presently I just send back one parameter (an id) but I need both... <input type="hidden" name="booking[start_at]" id="f_date_s" value="booking[start_at]" /> ... <%= link_to_remote(''check period'', :url => {:action => "checkPeriod", :id => @booking }) %> thanks for your help kad -- 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 -~----------~----~----~----~------~----~------~--~---
Kad Kerforn wrote:> In a panel, I have an hidden input field which is modified by a > javascript function (from calendar) > how can I sent the value of this input field in my link_to_remote call ? > presently I just send back one parameter (an id) but I need both... > > <input type="hidden" name="booking[start_at]" id="f_date_s" > value="booking[start_at]" /> > ... > <%= link_to_remote(''check period'', :url => {:action => "checkPeriod", > :id => @booking }) %> > > thanks for your help > > kadlooking at Dipesh post, is it possible to have a link_to_remote_function ? like... in which I can pass any element.value as a parameter ? -- 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 -~----------~----~----~----~------~----~------~--~---
On Oct 14, 6:56 am, Kad Kerforn <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Kad Kerforn wrote: > > In a panel, I have an hidden input field which is modified by a > > javascript function (from calendar) > > how can I sent the value of this input field in my link_to_remote call ? > > presently I just send back one parameter (an id) but I need both... > > > <input type="hidden" name="booking[start_at]" id="f_date_s" > > value="booking[start_at]" /> > > ... > > <%= link_to_remote(''check period'', :url => {:action => "checkPeriod", > > :id => @booking }) %> > > > thanks for your help > > > kadlooking at Dipesh post, is it possible to have a link_to_remote_function > ? like... > in which I can pass any element.value as a parameter ? > > -- > Posted viahttp://www.ruby-forum.com/.I seem to recall their being a :with option that can pass values to the remote call. _Kevin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---