Re: rjs not executing?

sayoyo
Mon, 29 Jan 2007 15:17:08 -0000

Thanks you very much for the information, but what exactly the
difference between Ajax.request and Ajax.update???


Sayoyo

unknown wrote:
>> 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


--
Posted via http://www.ruby-forum.com/.