Re: rjs not executing?

Jason Roelofs
Mon, 29 Jan 2007 15:45:07 -0000

The Updater is given a DOM id, which will then be rewritten with the
response of the request. It''s what you use if you want to use AJAX but
not
RJS. The Requester just sends a request. I believe that they can both be
told to execute the response text as javascript as well.

Jason

On 1/29/07, sayoyo
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
>
>
> 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/.
>
> >