Categories | Question details Back To List | ||
stack overflow at line 0 Hello, we've just started developing using your grid framework. I'd just like to say that we're very impressed with its quality and arsenal of features. I have a page(a JSP) that has a dhtmlXTree as a navigation-type panel and a dhtmlXTreeGrid that changes based on the tree node selected. Basically, a click of a node takes you to a different JSP that initializes a specific instance of a dhtmlxTreeGrid. The grid renders correctly. When I edit cell in the grid and call mydataprocessor.sendData(), I get a "stack overflow at line 0" in IE6. The interesting thing is, I am able to get 1 row of updated data to the server before this error happens. Any subsequent calls to sendData() results in "stack overflow at line 0". I have provided a sample of my code below. Please not that the urls are not valid; I just want to establish the usage. My question is, am I initializing anything incorrectly? When I edit a single cell and call sendData, I am able to receive a request on the server side. I just can't get it to send anything after the first call, without it giving me a stack overflow error. *********** EXAMPLE( please note that URLs and paths are not valid ******** mygrid = new dhtmlXGridObject('adminGrid'); // create the grid object as a global javascript object // Separate formatting from data; data comes from server and formatting is configured here in the JSP. mygrid.setImagePath("/ams/resources/img/dhtmlxTreeGrid/"); // URI of image source folder mygrid.setHeader("COL A,Col B,Col C,Col D,Col E"); // header names mygrid.setInitWidths("100,100,100,100,100"); // initial header widths mygrid.setColAlign("left,left,left,center,center"); mygrid.setColTypes("edtxt,ro,ro,ch,ch"); mygrid.setColSorting("str,str,str,str,str"); mygrid.enableAlterCss("even","odd"); // alternating row styles mygrid.enableColumnAutoSize(true); // cool... mygrid.init(); mygrid.loadXML('myXML.xml'); mygrid.setSkin('modern'); myDataProcessor = new dataProcessor("myURL"); myDataProcessor.setUpdateMode("off"); // let user submit manually myDataProcessor.init(mygrid); Answer posted on Nov 08, 2007 03:29 The code is correct, as far as I can see The problem which you describe can occur in case when data returned by dataprocessor is not correct ( it may contain correct syntax but the "tid" and "sid" attributes which must show new and previous IDs in not correct - for example they can be empty, or contain incorrect sid attribute ) - please try to enable debug output and check that values is correct. Debug output can be enabled by myDataProcessor.enableDebug(true) Also, if problem still occurs for you - please contact at support@dhtmlx.com - I will provide latest dataProcessor file, while it doesn't contain fixes directly related to your issue - it may help. |