Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Olivier AIME on Jun 26, 2008 13:07
open dhtmlx forum
updateFromXML using XML STRING and not URL

Hello,

the function updateFromXML need an xml located on a specific URL.

Me, i want the updateFromXML work using a javascript variable containing XML.

How to modify code of 1.6 version to acheive this ?

thanks
Answer posted by Support on Jun 27, 2008 02:51
Can be done without code modification, just made calls in next order

grid._refresh_mode=[true,false,false]; // values of array - update rows, insert new, delete missed
grid.loadXMLString(data);
Answer posted by Olivier AIME on Jun 27, 2008 05:17
ok, thanks for this tips.

Is it planned in next release to add this "refresh" feature for data based on JSON or JS arrays ?

I looked at the code, and the refresh code is just for XML.

It would be very interesting.

regards
Answer posted by Support on Jun 27, 2008 06:31
>>Is it planned in next release to add this "refresh" feature for data based on JSON or JS arrays ?
Yes, we plan to add full support for JSON datasets ( serialization to JSON, update from JSON, header configuratoin from JSON and etc. ) in next version.