insert dynamic json data as new page with listview

insert dynamic json data as new page with listview

i have an old test webapp with jquery mobile 1.2 which i now want to bring to jquery mobile 1.4.x
in the past i have patched jquerymobile.js and i now want to do it the "right" way. 

what i want to achieve:

i have a multi-page setup. a few pages are accessable via link on an external html-file. some other links will do a database query (via script on the webserver), the result is json. i now want to create a page out of this json. i have used jquery.tmpl.min.js to convert the json to html listview. what i not get is how to insert this as a new page into the dom.

in the past i have pachted the loadPage function in jquerymoible.js. what events do i have to use to create a page with listview out of dynamic json data? some pagecontainer-events? which one and how to insert a new page?

at the moment i am stuck. are there any example apps to have a look at?

markus