Hi, how can Intercept an error from server in callback function of the send?
Can I use the object loader and how?
Hi
Could you clarify the question, please?
I think also need help with this, for example when you press form.save(); nothing happens I have the Firebug running and there is not activity send to the server to be saved, also have the event on ValidationError added with a alert message but don’t display nothing neither, so how to debug in the client side what’s going on with the form events/method in order to find out what is going on with the dhtmlx Form object that is not working as expected.
Hi to all
please provide completed demo including all corresponding js/css files with steps to reproduce (you also can send demo to support@dhtmlx.com)
Hi, as often i’m doing, i response to myself.
I’m using spring mvc and i need to intercept a failure response from @ResponseBody in my controller, I have a global exception handler so I flush the response page in dhtmlxwindow doing so
searchForm.send(appContext + "/cercaUtenti", "post", function(loader, response){
if(loader.xmlDoc.status == 200) {
gridUsers = new dhtmlXGridObject('usersGrid');
gridUsers.setImagePath(appContext + "/resources/imgs/");
gridUsers.setSkin("dhx_skyblue");
gridUsers.init();
gridUsers.splitAt(1);
gridUsers.attachEvent("onXLE", function(){closeSearchingMeassageWindows();});
gridUsers.enablePaging(true, 15, 10, "pagingArea", true, "infoArea");
gridUsers.setPagingSkin("bricks");
gridUsers.parse(response);
} else {
closeSearchingMeassageWindows();
genericErrors(response);
}
function genericErrors(errori) {
winLoader = new dhtmlXWindows();
winLoader.setImagePath("/resources/imgs/");
errorsWin = winLoader.createWindow("errorWin", 20, 30, 600, 500);
errorsWin.setText("Errore!");
errorsWin.center();
errorsWin.setModal(true);
errorsWin.denyMove();
errorsWin.attachHTMLString(errori);
}