1
Good morning to all,
I’m trying to do a function where a JQM Panel dynamically receives a PHP page with some parameters. However it does not work, the panel opens blank. Below is the code I am 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 unsuccessfully.
Thanks in advance for the help.
Bro, you shouldn’t have the method
success
in the$.ajax
and from it you would callopendialog
?– Jhonatan Simões