I have tried all sorts of things to get the content to refresh on the window but nothing seems to work it always renders the old content.

I have tried .dolayout(), removeall(),....

I just need...