Programmatically inserting/updating pages and style

Programmatically inserting/updating pages and style

I am programmatically inserting a new page, and calling .trigger("create"), then a call to  $ . mobile . changePage ( "#myId" ).  This is working fine. 

But when I replace an existing page with new content, and try to refresh it (call to .trigger("create") and changePage), I just get a blank page. The content is there, but hidden, and new style is not properly applied.

Any idea why this is happening?