My company has a website that serves the same app to several clients so every client has his own html templates and we can't edit anything of that.
We developed a beutiful Web 2.0 app with lots of jQuery that works great, it's a web toy fully enjoyable but we have to integrate it with the horrible and buggy stuff from the clients (like a code sandwich) and as it always gave us problems of all kind we decided to use an iFrame for our app and a little js to refresh its height (the parent and the iFrame content come from the same domain). The iFrame save us from all the mess and weirdness but it's sad to use something like that.
Do you know a better solution for this?