I think that this one is much more elegant:
$.mobile.changePage('#dialog', 'pop', true, true);
you should have in your html data-role="dialog"
instead of page
<div data-role="dialog" id="dialog">...</div>
I think that this one is much more elegant:
$.mobile.changePage('#dialog', 'pop', true, true);
you should have in your html data-role="dialog"
instead of page
<div data-role="dialog" id="dialog">...</div>