I followed a tutorial for making an anchor tag open a second page as a dialog box, from an icon in the footer. On the desktop the dialog box opens fine and I can close it to return to the main page.
On mobile devices the dialog box does not open unless I first refresh the main page. I'm using jquery.mobile-1.4.3.min.js
I have looked at several tutorials and all are similar, some use data-rel="dialog" in the anchor tag while others use data-role="page" data-dialog="true" in the actual dialog box code. Either way produces the same result. It only works after a refresh.
What is missing that the tutorials have not shown?
thanks