Categories | Question details Back To List | ||
smart rendering asp I am just loading data from an asp web server but setXMLAutoLoading seems to be a big problem to me. The grid doesn't load anything. My feed.asp code is: <%@ LANGUAGE="VBScript" %> <% Response.Buffer = true Response.ContentType = "text/xml" Response.Write("<?xml version='1.0' encoding='iso-8859-1'?>" & vbCrLF) Response.Write("<rows>" & vbCrLf) Dim i For i=1 to 25 Response.Write(vbTab & "<row id=""" & i & """ >" & vbCrLf) Response.Write(vbTab & "<cell>" & i & "</cell>" & vbCrLF) Response.Write(vbTab & "<cell>" & i & "</cell>" & vbCrLF) Response.Write("</row>") Next Response.Write("</rows>") %> I am calling this page using this code: <link rel="STYLESHEET" type="text/css" href="dhtmlXGrid.css"> <script src="dhtmlXCommon.js"></script> <script src="dhtmlXGrid.js"></script> <script src="dhtmlXGridCell.js"></script> <script src="dhtmlxgrid_srnd.js"></script> <div id="gridbox" width="100%" height="500px" style="background-color:lightgrey"></div> <script> mygrid = new dhtmlXGridObject('gridbox'); mygrid.setHeader("id1,id2"); mygrid.setColSorting("int,int") mygrid.setInitWidths("90,90") mygrid.setColAlign("right,right") mygrid.setColTypes("ro,ro"); mygrid.setColumnColor("#D4D0C8") mygrid.setImagePath("imgs/"); mygrid.init(); mygrid.setXMLAutoLoading("feed.asp"); </script> So, what's the problem with me? Answer posted by Stanislav on Nov 16, 2007 04:57 The setXMLAutoLoading and loadXML are different commands setXMLAutoLoading - set url which will be used for fetching additional data , but not call it immideatly loadXML call url to fetch data You can use next syntax mygrid.setXMLAutoLoading("feed.asp"); mygrid.loadXML("feed.asp"); or to remove url duplication mygrid.setXMLAutoLoading(); mygrid.loadXML("feed.asp"); |