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…

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


Can it be that on moment of “loadXML” call the xml file not updated yet ?
actually this is one of my suspect also…



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

how do i exactly do this? sorry i dont get this…



thanks once again for being so helpful…



ull be waiting for the instructions and hope that it works…<br>


thank you so much…

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.