On 2/23/07, Nicolas Hoizey <[EMAIL PROTECTED]> wrote:
> In a page that gets modified by ajax calls, I would like to run my
> own function after each change.
>
> My function does ajax calls, so if I use the ajaxSuccess binding, it
> goes recursively and crash...
>
> Any idea?
Untested, but reading the code I assume this would work:
$("#something").ajaxSuccess(fn);
function fn(r, s) {
$(this).unbind("ajaxSuccess");
// do what you want, then rebind
$(this).ajaxSuccess("fn");
}
HTH.
--
Choan
<http://choangalvez.nom.es/>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/