One way I have seen do a good job with this, is to split up the js
related to each ajax call into their own files. So if you have an AJAX
call for login & one for registration, then you have a complimentary
js for each of those. You can then load the js how you want (I use
Assets library) after the AJAX call is completed. The new DOM will be
loaded and then the external js fires and recognizes the newly added
DOM.

On Dec 7, 11:43 am, Xeoncross <[EMAIL PROTECTED]> wrote:
> Ok, after every AJAX call I just recheck the DOM for the form element
> and create
> another instance of the form ajax. I am just not sure if over time
> this will cause a
> buildup of useless objects thereby wasting RAM.
>
> I am hoping that Mootools is smart enough to delete objects that
> reference a DOM
> element when that element is removed from the DOM...

Reply via email to