Categories | Question details Back To List | ||
loading xml hi.. ive received the version of grid which uses POST instead of GET (dhtmlxcommon.js), but still didnt work, i've also tried other approaches.. i made a button which does loadXML(), basically to reload the XML if it fails, it works..but i only made the button for testing purposes..so if there are any more help you can give, ill gladly appreciate.. i was hoping that when the page loads the correct table or correct xml will be loaded, without using the button i made.. thank you for being helpful.. Answer posted by Support on Nov 29, 2007 03:47 The POST request can't cached, so problem definitely not in cache Can it be that on moment of "loadXML" call the xml file not updated yet ? Instead of using JSP = > staticXML grid => loadXML => staticXML you can try to use direct loading as grid => loadXML => JSP you can output XML directly from JSP code so if problem caused by some kind of server side concurency then it will be resolved Answer posted on Nov 29, 2007 16:44 Can it be that on moment of "loadXML" call the xml file not updated yet ? you can try to use direct loading as thanks once again for being so helpful.. ull be waiting for the instructions and hope that it works..\ thank you so much.. Answer posted by Support on Nov 30, 2007 05:56 When you use grid.loadXML("my.jsp"); the file my.jsp will be called and executed, so if it contains code similar to next <%@ page language="java" contentType="text/xml; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %> <jsp:useBean id="Test" class="n14.Base"> </jsp:useBean> <%@ include file="config.jsp" %> <% Test.con(dbName,userName,userPass); Test.createXML((String)request.getParameter("rowsLoaded"),response); %> which will output necessary xml directly instead of saving to file. The JSP based sample sent by email. |