I keep all my behaviours in separate functions. For instance if I had a fancy table widget I'd have a function called initTable() that contained the behaviour code. I'd call it initially upon page load, then call it again when necessary if content has been updated via ajax.
Eg. $(document).ready() { initPage(); // misc page stuff that won't be refetched from ajax initTable(); initOtherStuff(); }); function initPage() { ... } function initTable() { ... } etc. Then if I need to refresh something in the table via ajax I just call initTable() in the callback of my ajax function. Chris
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/