I’m using the dhtmlxPro version. Searching this forum I found some documentation links by the dhtmlx support people that list permutations of the dhtmlxGrid post() method. I’m calling this method like so:
myGrid.post("unitOrder.do?opt=reloadAdjustment", "orderOid="+dwOrder.meta.orderOid+ "&salesOrderNumber="+dwOrder.meta.salesOrderNumber,"json");
An alert dialog appears indicating that the status code is “200” and then shows a chunk of my returned JSON with the message being “Not an XML…”.
Also, I don’t like it when this method posts a DHTMLX error by the DHTMLX software. Just give me the status and I’ll make a determination what to display and how.
Finally as part of this post/message handling I’ve added the following code:
On the myErrorHandler callback dhtmlx passes information of limited use. In this case I get 3 parameters “LoadXML”, “Incorrect”, “JSON”.
I need a way to check the return status (200, 404, etc) and then gain access to the returned message.