3.2.0

XML data from a servlet ?

servlet:

response.setContentType("text/xml");
response.setHeader("Cache-Control", "no-cache");
PrintWriter pw = response.getWriter();
pw.write("<message>...</message>");
......
pw.flush();

javascript:

var req;
if (window.XMLHttpRequest) {
req = new XMLHttpRequest();
)
var table = new AW.XML.Table;
table.setXML(req.responseXML);
.......

why not work??? need fresh table???
November 2,
Hi,
you need to put a node in wich you shoud enclose all the rest nodes you are rendering, also in this node should put an schema definition.

regards
Ssamtao
November 3,

This topic is archived.

See also:


Back to support forum