I have a dialog with 2 buttons ‘cancel’ and ‘open’, when I click on open I would like to load a url in the same page.
This is my code:
$("#delete_wind").dialog({ autoOpen: false })
$( "#delete_wind" ).dialog({
resizable: false,
height:'auto',
width:350,
modal: true,
buttons: {"OPEN Message": function() {
url=('mailbox.php?id='+jQuery.data(document.body, 'elimina_id'));
**HOW OPEN URL??????**
$( this ).dialog( "close" );
},
"Annulla": function() {
$( this ).dialog( "close" );
}
}
});
Well, you can just set the
window.location.hrefattribute: