I'm trying to do a very simple thing with JQM, but I'm having issues doing it (I'm a newbie to JQM, sorry).
I have a main page that link to a secondary page. In this secondary page I would like to load a dynamic content inside a div (#main). The first problem was binding to the pageshow event, because sometimes it would not fire or it would fire more than one time. I have fixed that issue using the .one function and moving the script inside the page DIV.
The first time I visit the page I can see the alerts and the content is change accordingly. The second time I visit this page (return home and the return to the page) I see the alerts but I don't see the content. The content remains unchanged (empty).