Passing content when doing page navigation
Hi,
Complete newbiw to JQuery Mobile. Searched the forum for similar problem but could not get hits.
I have couple of html pages and both of them have corresponding js file. 1.js is creating the initial content for 1.html using the "pageinit" event. Subsequently when user clicks on some element in 1.html, I need to navigate to 2.html and display in it more details of the item selected in 1.html. Incidentally, if the user directly navigates to 2.html, 2.js uses the "pageinit" method and populates the page.
On user click of item in 1.html, I am trying to dynamically add content to my container in 2.html through code in 1.js. And using the $.mobile.changePage(), I am able to navigate to 2.html. However the content that I am trying to dynamically add via 1.js is disappearing and I end up with a blank 2.html.
Hope there is a good solution here.
Thanks and Best Regards,
Sandeep