Hello all,

I am trying to pass variables in Ajax.Request method. I can see that we
can pass a single variable as:-
new Ajax.Request('/controller/action?id=" + value + "&status=JOINING',
{asynchronous:true, evalScripts:true, parameters:'resume[comment]=' +
$F('resume_comment" + forward_value + "')}); return false;");

I hope that i am correct.. Now i want to pass the value of another
input.. whose id is joining_date1. And then i tried this way:-
new Ajax.Request('/controller/action?id=" + value + "&status=JOINING',
{asynchronous:true, evalScripts:true, parameters:'resume[comment]=' +
$F('resume_comment" + forward_value + "'), 'joining_date=' +
$F('joining_date" + forward_value + "')}); return false;");

But now both of the variables are not passing.. Can you guys give me
some light that what i am missing here .. ?
-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to