Sending parameters with link_to_remote Ajax Request

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…



<%= link_to_remote(‘check period’, :url => {:action => “checkPeriod”,
:id => @booking }) %>

thanks for your help

kad

Kad K. 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…



<%= link_to_remote(‘check period’, :url => {:action => “checkPeriod”,
:id => @booking }) %>

thanks for your help

kad

looking 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 ?

On Oct 14, 6:56 am, Kad K. [email protected]
wrote:

: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