Categories | Question details Back To List | ||
Dynamic Grid using ASP and SQL server, problems loading more records Hi guys, I'm struggling again I think down to the lack of ASP documentation. Be great if you could point me in the right direction. I can get the initial rows to populate then when I scroll down I get an XML error. No clue why so here's the code...
<script> <div id="products_grid" style="width:500px;height:200px;"></div> var mygrid = new dhtmlXGridObject('products_grid'); mygrid.setImagePath("code/dhtmlxGrid/codebase/imgs/"); mygrid.setHeader("Product Name,Internal Code,Price"); mygrid.setInitWidths("*,150,150"); mygrid.setColAlign("left,left,right"); mygrid.setSkin("modern"); mygrid.init(); </script>
- - - - - - - - then this is my ASP page... (getGridRecords.asp)
<%@ LANGUAGE = VBScript %> ' define variables from incoming values If not isEmpty(Request.QueryString("count")) Then ' if this is the first query - get total number of records in the query result ' Next recordset %> Thanks for the help!
Answer posted by Support on Mar 12, 2009 05:44 Incorrect XML error means that printed data has XML syntax errors, in case of dyn. generation of data, most possible reason - some script error occurs during data generation and error info corrupt XML - data was printed in different encoding than XML ( iso-8859-1 vs UTF ) which cause xml syntax error To check exact reason, you can load the same url ( getGridRecords.asp with parameters ) in separate window or use debug version of dhtmlxcommon.js http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Common_Problems_in_Grid.html#grid_art_comprob http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&q=2545&ssr=yes&s=dhtmlxcommon Answer posted by dhxSupport on Mar 12, 2009 06:45 Incorrect XML error means that printed data has XML syntax errors, in case of dyn. generation of data, most possible reason - some script error occurs during data generation and error info corrupt XML - data was printed in different encoding than XML ( iso-8859-1 vs UTF ) which cause xml syntax error To check exact reason, you can load the same url ( getGridRecords.asp with parameters ) in separate window or use debug version of dhtmlxcommon.js http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Common_Problems_in_Grid.html#grid_art_comprob http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&q=2545&ssr=yes&s=dhtmlxcommon Answer posted by Dale on Mar 12, 2009 07:16 Cool, you make this too easy. The debug file is exactly what I needed. I had no idea what was going on and what variables where actually being sent. Thank you for this, massive help. |