Re: Triggering Javascript after AJAX

fRAnKEnSTEin
2009-07-31T23:42:32Z

see this creencast:

http://railscasts.com/episodes/136-jquery

there ryan Bates shows how to use javascript after an ajax call and
more. maybe it could help you.


On 31 jul, 16:43, "reube...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
<reube...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> I have a page starting out with:
>
>
>
>
> After an AJAX call, the innerhtml is updated to:
>
>
>
>
>
> where after the new content is loaded, I want to run
>
>  $(''newDiv'').fade({ duration: 2.0, from: 1,  to: 0 });
>
> I can''t figure out how to set this up. Code examples or links to
> documentation would be nice... :)