As far as I know, RJS outputs Prototypejs code. If you have replaced
Prototypejs with jQuery, then the RJS output won't work (hence the
"Element.update
is not a
function" error), because Prototypejs isn't there.

You would probably be better off skipping RJS and just putting straight
jQuery into your template, and just name the template edit.js.erb (or .haml,
if you were using that)...

Phil


On Mon, Feb 14, 2011 at 11:48 AM, Fernando Perez <[email protected]>wrote:

> Wow there is some Rails magic going on.
>
> If I replace the code in _form.html.erb by simple "Hellow world", now
> the div gets correctly updated.
>
> Is Rails filtering, escaping, or preventing a form from updating my div
> through ajax?
>
> --
> 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.
>
>

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