Reload/refresh table after event - Page 3

Reload/refresh table after event

13»

Answers

  • cthompsoncthompson Posts: 24Questions: 0Answers: 0

    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?

  • cthompsoncthompson Posts: 24Questions: 0Answers: 0

    and thanks again for all the help!

  • cthompsoncthompson Posts: 24Questions: 0Answers: 0

    Disregard... IT'S WORKING!!! Thank you!!!!!

  • dhimasAdriandhimasAdrian Posts: 1Questions: 0Answers: 0

    Thanks Allan. This works for me

Sign In or Register to comment.