Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
Iggrid SaveChanges Does not Recognize Success Message from Update Url

Hi, I am trying to batch update my grid with an updateUrl. However, I cannot get the grid to recognize that the php file I am hitting returns success. Instead, the error callback happens. This question is the same as this, except the suggested answer does not work for me (I am setting the header and the problem still occurs.) 

Here is the code for my webpage.

<!DOCTYPE html>

    <!-- Ignite UI Required Combined CSS Files -->
    <link href="" rel="stylesheet" />
    <link href="" rel="stylesheet" />

    <script src=""></script>
    <script src=""></script>
    <script src=""></script>

    <!-- Ignite UI Required Combined JavaScript Files -->
    <script src=""></script>
    <script src=""></script>


    <table id="grid"></table>
    <button onclick="saveGridChanges();">Save</button>
    <label id="message"></label>
    <script src=""></script>
        $(function () {
            	primaryKey: "ProductID",
            	caption : "<span> <img src=\"//\" alt=\"Infragistics\"></span>",
                width: '100%',
                columns: [
                    { headerText: "Product ID", key: "ProductID", dataType: "number", width: "15%", hidden: true },
                    { headerText: "Product Name", key: "ProductName", dataType: "string", width: "25%" },
                    { headerText: "Category", key: "CategoryName", dataType: "string", width: "25%" },
                    { headerText: "Units In Stock", key: "InStock", dataType: "number", width: "35%" }
                autofitLastColumn: false,
                autoGenerateColumns: false,
                dataSource: northwindProducts,
                responseDataKey: "results",
                autoCommit: false,
                updateUrl: "http://localhost:8001/php/formrequests/common/test.php",
                features: [
                        name: "Updating",
                        editMode: "row",
                        enableAddRow: false,
                        columnSettings: [
                                columnKey: "ImageUrl",
                                readOnly: false
        function saveGridChanges() {
    try {

        function (data) {
            $("#message").text("Changes were saved successfully").fadeIn(3000).fadeOut(5000);

            }, function (jqXHR, textStatus, errorThrown) {
            $("#message").text("An error occurred while saving the changes. Error details: " + textStatus).fadeIn(3000).fadeOut(5000);
    } catch (e) {

Here is the code of the php file in the update url. 

header('Content-Type: application/json; charset=utf-8');
echo (json_encode(array('success' => true)));

Thank you