How to properly replace jquery mobile pages in the DOM -


i using jquery mobile , custom i18n functionality. when user changes language settings want remove existing pages , put them again dom (i using handlebars.js new pages shown in new language).

what proper way accomplish this? removing pages .remove() , appending them dom not way go - history gets broken, pages don't enhanced , i'm not sure if possible change current page way.

is possible or should consider refactoring i18n doesn't require refreshing whole dom?


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -