I am trying out JQuery and jqGrid for the first time to do a standard CRUD frontend to a database. Following documentation, I managed to get the adding rows to work but I would like to issue a success message. I tried this:
$("#list2").jqGrid('navGrid', '#pager2', {add:true, view:false, edit:false, del:false},
{},
{closeAfterAdd:true,
afterComplete: function(response, postdata, formid){
alert(response);
}
},
{},
{},
{});
The server side does the insert and echoes the success message that I'd like in the alert, but the alert dialog only says [Object object]
. I would appreciate some help on how to handle the server response.