Re: Triggering Javascript after AJAX

reuben.m-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2009-08-01T02:32:21Z

I''m an idiot. A simple :onsuccess callback was all I needed.


But, on the upside, at the same time I figured out how insert
javascript to be run after a "fake ajax file upload by redirect to
iframe hack".

On Jul 31, 5:43 pm, "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... :)