Categories | Question details Back To List | ||||||||||||||
dhmtlXLoaderObject async = false not working on 1.6 Hi, I have cellUpdater = new dhtmlXMLLoaderObject(doUpdateCell, window, false); then I have a function that uses above object function sendServerCellUpdateRequest(rId){ var rowValuesAr = getCellsArray(rId); if(mygrid.getUserData(rId,"new")=="1"){ var action = "add"; } var url = actionURL+"?do="+(!action?"update":action)+"&id="+rId+"&values="+rowValuesAr.join("|"); cellUpdater.loadXML(url+"&un="+Date.parse(new Date())); }; function below get triggered "SYNCHRONOUSLY" if the above is working properly function doUpdateCell() { if (cellUpdater.xmlDoc.responseXML == null) { alert('Wrong value'); mygrid.updateFromXMLSync(loadDataURL + "&rowId=" + currentRow); if(typeof afterUpdateCell == 'function') { afterUpdateCell(); } } else { var root = cellUpdater.getXMLTopNode("status"); var oldId = root.getAttribute("oldid") var rowId = root.getAttribute("rowid") if (oldId != rowId) { mygrid.changeRowId(oldId,rowId); mygrid.setRowTextNormal(rowId); } mygrid.setUserData(rowId, "changed", "0") mygrid.setUserData(rowId, "new", "0") mygrid.updateFromXMLSync(loadDataURL + "&rowId=" + rowId); if(typeof afterUpdateCell == 'function') { afterUpdateCell(); } } } The dhtmlXLoaderObject is working in Async mode even if my third argument to constructor is false. Thanks Peter Answer posted by Support on Aug 05, 2008 08:26 I'm not sure which build you are using , but dhtmlxcommon.js taken from grid 1.6 works correclty. The latest version of js file and working sample attached to email. Attachments (2)
|