I am writing a phonegap app. I show a page like this: I basic page structure from a html file with $.mobile.loadPage and add dynamic content to it. I make the page id unique and then use $.mobile.changePage($('#pageID') to show it to the user.
So lets assume I create a page with entries for a list 'a' and then also create a page with entries for a list 'b'. The pages have unique ids. But if I edit an entry from either list, when I press the back button, I see both lists because their both referenced by 'entries.html' in $.mobile.urlHistory . I read about the data-url attribute and I think it should be possible to set it correctly to distinguish between the two generated pages, but I don't know how.
I already thought about handling the whole history myself, which by itself wouldn't be a problem. What keeps me from doing it, is that I don't see a nice way to override the default behavior of the automatically generated back button.
Any help would be greatly appreciated.