Hi Ralph,

On Fri, May 21, 2010 at 7:09 PM, Ralph Shnelvar <[email protected]>wrote:

> Is there a simple example of me issuing an XMLHttpRequest and a rails
> app responding ... without all the Prototype overhead.
>
> All I want to do is send an XHR and have the Rails app deliver an XML
> document back.
>
> I have searched ... Does anyone nkow of a decent example?
>

Depending on the UI element you want to use to trigger the ajax request,
check out the rails documentation for:

link_to_remote
button_to_remote
form_remote_for
form_remote_tag

Each helper will generate the appropriate Ajax request, using Prototype as a
default.  Rails does the coding for you.  Check back if you have questions
specific to one of those once you decide which is most appropriate for your
situation.

HTH,
Bill

-- 
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.

Reply via email to