So, I have a page and a dialog. When the user clicks the page button, one AJAX request opens a dialog with the results. Something like this simple example without AJAX: http://jsfiddle.net/rBBpx/
It works. The dialog box opens programmatically. But it hides the contents of the page, showing a dialog as if it were another page. I know that a pop-up window can open dialogs on a page with links, but I did not understand how to do this programmatically. I tried changing the call $.mobile.changePage()to this, but it did not work as I expected:
$('#dialog').popup();
$('#dialog').popup('open');
How can I show this dialog on the page as a popup? Is it possible? Thank you in advance!
source
share