My quick answer (since I haven't encoded it yet) was to create another function that creates a POST using XMLHTTPRequest and specific parameters for one call. Then inside the onClick () handler, you call this function when passing through the elements you have selected.
, " ", HTML- javascript, , RoR.
, , RoR?