Categories | Question details Back To List | ||||||||
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?: http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=2831&ssr=yes&s=grid%20error%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 Answer posted by Alex (support) on Sep 02, 2009 09:47 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. Attachments (1)
Answer posted by Morten Korsgaard on Sep 02, 2009 11:43 Worked perfectly. Thank you very much! |