Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by R. Mies on Mar 31, 2009 05:27
open dhtmlx forum
XML error server response

Dear Sir, Madam,

I am trying to get some of your examples to work (01_basic.html for the datagrid), but the dataprocessor debug screen comes up with the following message:

Log:
row 2 marked as updated
Initiating data sending for 2
Server url: 01_basic_connector.php?

gr_id=2
c0=Albania%20
c1=553524
!nativeeditor_status=deleted

server response received <?xml version='1.0' encoding='UTF-8' ?><rows total_count='2' pos='0' ><row id='1'><cell><![CDATA[Afghanistan ]]></cell><cell><![CDATA[293141]]></cell></row><row id='2'><cell><![CDATA[Albania ]]></cell><cell><![CDATA[553524]]></cell></row></rows>
Not a XML

(I have truncated the 'countries' table in the sampledatabase to just 2 record, for convenience).
I have a feeling it has to do with the server, and not the client and I have put the line header("Content-type:text/xml"); in the 01_basic_connector.php file. But to no avail.
I am running out of options.
Could you please help me?

kind regards,
Rob Mies
reg. number 261118805
Answer posted by Support on Mar 31, 2009 07:44
The log output shows that instead of data processing , connector works in "select" mode.
It can be caused by 
- missed|not included connector.js 
- situation when connector.js included before dataprocessor.js ( this is pretty tricky point, it will be changed in 1.0 release to work without relation to order of includes ) 

In default samples ( including 01_basic.html ) all necessary files included and order of  includes is correct - so if you not modified them - all must work correctly. 
Are you using all js files from 2.1 release?
Answer posted by R. Mies on Apr 01, 2009 23:45

Dear Sir, Madam,

 

thanks for the speedy reply. Connector.js indeed was missing. It was one higher up in the tree. Instead of: <script src='../../codebase/connector.js'></script> the script read: <script src='../../../codebase/connector.js'></script>

But now it works like a charm!

Again, thank you very much. 

 

Kind regards,

Rob Mies