I am using AJAX requests (more specifically, jQuery's load method) to load different views within the same HTML DIV.
This works fine, but, some of these dynamically loaded pages have events hooked to them, for e.g. setTimeout, setInterval events, etc.
My question is: How do I handle the loading & unloading of these events across the loading of different views? Is there any specific pattern for this?