Re: rjs not executing?

mcintyre.tim-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Wed, 24 Jan 2007 18:39:01 -0000

> on main.rhtml, I have:
> <%= link_to_remote(''add'',
:url=>{:action=>''openAdd''},
> :update=>''addZone'')-%>
>
>

Don''t use the :update option with rjs calls.  That constructs an
Ajax.Updater prototype object instead of the Ajax.Request object you
need for rjs calls.

On the other hand, if you only need to update one html element, I''d
leave the :update option and just return a regular partial template,
pretty sure it''s considerably faster.

Good Luck,
Tim