jQWidgets Forums

jQuery UI Widgets Forums Grid Error while posting rowdata to server

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Error while posting rowdata to server #48795

    mallepaddi
    Participant

    Hi

    Getting an error while posting data to server when a new row was adding to grid.

    addrow: function (rowid, rowdata, position, commit) {
    $.ajax({
    cache: false,
    dataType: ‘json’,
    url: ‘/servlet?action=Add’,
    data: rowdata,
    type: “POST”,
    success: function (data, status, xhr) {
    commit(true);
    },
    error: function (jqXHR, textStatus, errorThrown) {
    alert(“textStatus ..” + textStatus);
    alert(“Error ..” + errorThrown);
    commit(false);
    }
    });
    }

    ERROR : Error ..SyntaxError: JSON.parse: unexpected character

    Please help.

    Thanks

    Error while posting rowdata to server #48797

    Peter Stoev
    Keymaster

    Hi mallepaddi,

    I suggest you to check your JSON for syntax errors. JSON.parse is not a function developed by jQWigets.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.