Good morning everyone,
I'm trying to do a function where a JQM Panel dynamically receives a page in PHP with some parameters. But it does not work, the panel opens in white. Here is the code I'm using:
$(".botao").on("mouseup", function (e) {
var url = $.ajax({
method: "GET",
url: "menu.php",
data: { qtd: "1", linhas: "19" }
});
opendialog(url);
});
function opendialog(page) {
$("#menu").html(page);
$("#menu").trigger('updatelayout');
$("#menu").trigger('create');
$("#menu").panel("open");
}
I have also used .GET instead of .AJAX in the code, also without success.
Thank you in advance for the help.