Frederick Cheung wrote: > On Jun 8, 3:00�pm, Ralph Shnelvar <[email protected]> wrote: >> Could someone please demonstrate the code to send both json (or xml) AND >> javascript (to be executed) in a single Ajax request? >> > > Assuming you mean sending that as the response to an ajax request .... > > If you set the X-JSON header to be a json fragment Prototype (don't > know about other libraries) will deserialize that for you, and then > the response body can be whatever you want.
Fred: Ok ... lets say I have two variables ABC and XYZ and I want to send the values of those two variables back to my jQuery code ... What's the magic invocation to do that in Rails? -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

