Thank you for checking back with me on this. I did not get these functions working, but the problem probably related to my AJAX implementation, not with the functions. I was running into other problems too. Now I’m experimenting with a different approach to dynamically load pages – using Turbo (formerly Turbo Links) — and the carousel is working fine, without having to use the callback function. Basically, Turbo fetches everything, except what you tell it to leave unchanged. A much better approach I think. Thanks again.