Invalid JSON error handlig in GRID

Dear DHTMLX,



I have been looking for a way of handling JSON errors with the GRID like this example but that example doesn’t work with JSON i assume?:

dhtmlx.com/docs/products/kb/inde … 20handling



My problems is that my grid is only available to users who are logged onto my webpage, and if they “idle” to long on the page with the grid, they are automatically logged off but unfortunately not redirected from the page. So if they try to scroll, search or whatever triggers the grid loading, the server does not response any JSON.

The goal is, that if there is no valid JSON response the page should do a refresh, and the users will get a login prompt.



So i just want to be able to execute some javascript if the JSON response is invalid.



I use version:

2009Rel1_pro_90226



Thanks for great support.



Best regards

Morten Korsgaard


Hello,


please try to use attached file (the latest _json.js version) instead of the original one. It allows to set error handler for JSON loading.


dhtmlxgrid_json.zip (1.13 KB)


Worked perfectly.



Thank you very much!