Changed to this and still not refreshing.
function rejectuser(id) {
$.ajax ( { type : "GET", url: 'reject.php', data: {id:id}, async: false, success : function(data) { $('#sitesTable3').DataTable().ajax.reload(); }, error: function (jqXhr, textStatus, errorMessage) { alert("error!"); } } ) }
What did I do wrong?
and thanks again for all the help!
Disregard... IT'S WORKING!!! Thank you!!!!!
Thanks Allan. This works for me
Answers
Changed to this and still not refreshing.
function rejectuser(id) {
$.ajax
(
{
type : "GET",
url: 'reject.php',
data: {id:id},
async: false,
success : function(data)
{
$('#sitesTable3').DataTable().ajax.reload();
},
error: function (jqXhr, textStatus, errorMessage)
{
alert("error!");
}
}
)
}
What did I do wrong?
and thanks again for all the help!
Disregard... IT'S WORKING!!! Thank you!!!!!
Thanks Allan. This works for me