Dear all, I am using SimpleModal in JQuery, and I have One Confirm Dialog ,If it is Yes , I have To Call my.php into This Dialog,However I done the code ,I still Searching Ideas, any help?
$(document).ready(function () {
$('#confirmDialog input.confirm, #confirmDialog a.confirm').click(function (e) {
e.preventDefault();
// example of calling the confirm function
// you must use a callback function to perform the "yes" action
confirm("Continue", function () {
alert("OK");
});
});
});
function confirm(message, callback) {
$('#confirm').modal({
close:false,
position: ["20%",],
overlayId:'confirmModalOverlay',
containerId:'confirmModalContainer',
onShow: function (dialog) {
dialog.data.find('.message').append(message);
// if the user clicks "yes"
dialog.data.find('.yes').click(function () {
$.get('my.php', function(data){
// create a modal dialog with the data
// Here How to write the same window?
});
// call the callback
// close the dialog
$.modal.close();
});
}
});
}
Here i have problem how to write it same window Confirmdialog from ajax Result.Any one suggest how to do it