James thank you for you answer it works but, record is deleted but no
changes on page with list of records. I need to refresh to see the
changes. How can i do that please ?
Iam including updated code
<script type="text/javascript">
$(function() {
var myID;
$("#dialog-delete").dialog({
autoOpen: false,
bgiframe: true,
resizable: false,
width: 400,
modal: true,
overlay: {
backgroundColor: '#000',
opacity: 0.5
},
buttons: {
'Delete': function() {
$.post('delete.php', {id:myID},
function(data) {
// script is done and a response is
returned
// close the dialog box
});
$(this).dialog('close'); //
when this was inside the function
(data) dialog didnt close
},
'Cancel': function() {
$(this).dialog('close');
}
}
});
$(<?php echo $recordIDs ?>]).each(function() {
var num = this;
$('#dialog_link_' + num).click(function() {
myID = num;
$('#dialog-delete').dialog('open');
});
});
});
</script>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---