In the current version of jQuery Mobile it seems to be necessary to keep all data-role="page" elements on one level (at least when one wants to establish links between them). Since I am using knockout to dynamically produce pages, I have the requirement to bind virtual elements directly, e.g. in
<div data-role="page" id="page1"><h1 data-bind="text: name"></h1></div>
<!-- ko text: name --><!-- /ko -->
I want to bind one model A to page1 and one model B to the virtual element (which is a template: foreach binding in the real application). More detailed fiddle: http://jsfiddle.net/timvdh/t3Cyd/3/
Is this doable somehow?
pagecreateof each page separately. In case you want to do something when pages are shown (pageContainerevents) it's not possible UNLESS you place each page in a differentpageContainer. This way, each page will act as an individual page with its own bindings. - Omarwithbinding knockoutjs.com/documentation/with-binding.html - John