Hi,
How can I use Ajax.Updater to send parameters from HTML - param1 and
param2 the values of which are not in a form as such using
Ajax.Updater in a manner such that on the server side, I use the
model's update_attributes method.

new Ajax.Updater(
                       '#{options[:update_html_id]}',
                       '#{options[:update_url]}'+id,
                       {asynchronous:true, evalScripts:true,
parameters:'authenticity_token=' +
encodeURIComponent('Hl7TS7DG2dM0zmGAO09HMU8rKTNJwto37APahAPK9vA=') }
                       )

How can I modify the Updater above to generate the data below so that
I can use model.udate_attributes(params[:some_model])

{ "authenticity_token"=>"Hl7TS7DG2dM0zmGAO09HMU8rKTNJwto37APahAPK9vA=",
 "some_model"=>{"param1"=>"value1",
 "param2"=>"value2"},
 "id"=>"100"}


--
Regards,
Kashyap

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to