A4D v5(recent)
4D v11.7
Windows
If your familiar with A4D & DHTMLX suite, grid specifically, perhaps you can
answer this for me.
I'm using DHTMLX javascript suite loading the grid definition (an XML
document) and the data (alternatively in json and xml). I've not run into
this particular issue before where the load methods seem to require
something other than what is provided in the normal response http headers.
When loading the documents directly from disk into the browser everything
works fine.
When serving them with 4d/a4d http, when loading the XML grid definition,
the .loadXML('LoadGrid1.xml') method is showing an alert saying:
Not an XML, probably incorrect content type specified ( must be text/xml ),
or some text output was started before XML data
Loading: ListGrid1.xml
Status: 200
Response:
<?xml version="1.0" encoding="UTF-8" ?>
<rows>
<head>
<column width="50" type="ro" align="right" color=""
sort="int">Number</column>
<column width="190" type="ro" color="" sort="str" align="left">Name</column>
<column width="100" type="ro" color="" sort="str"
align="left">Phone</column>
<column width="50" type="ro" color="" sort="str" align="left">Unit</column>
<column width="80" type="ro" color="" sort="date"
align="center">Admit</column>
<column width="80" type="ro" color="" sort="date"
align="left">Discharge</column>
<column width="120" type="ro" color="" sort="str" align="left">Social
Security</column>
<column width="80" type="ro" color="" sort="date" align="left">Birth
Date</column>
</head>
</rows>
...followed by:
Error type: LoadXML
Description: Incorrect XML
This same message appears even when I include, and make .XML an executable
file type:
<%set response header("Content-Type";"text/xml")%>
I need suggestions please!
Thanks!!
David Ringsmuth
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/