Categories | Question details Back To List | ||
loadXMLString Hi, I'am using loadXMLString to initialize a dhtmlxTreeGrid header. When i execute the following command, Grille.loadXMLString('<?xml version="1.0" encoding="ISO-8859-1"?><rows> <head> <column id="TypeOperationVirt.Fonctions" width="250" type="tree" align="left" sort="na">Fonctions</column> <column id="TypeOperationVirt.Avance" width="85" type="ch" align="left" sort="na">Avance</column> <column id="TypeOperationVirt.Consultation" width="85" type="ch" align="left" sort="na">Consultation</column> <column id="TypeOperationVirt.Creation" width="85" type="ch" align="left" sort="na">Creation</column> <column id="TypeOperationVirt.Historique" width="85" type="ch" align="left" sort="na">Suppression</column> <column id="TypeOperationVirt.Modification" width="85" type="ch" align="left" sort="na">Modification</column> <column id="TypeOperationVirt.Suppression" width="85" type="ch" align="left" sort="na">Suppression</column> </head></rows>', finirInitialisationGrille); an error occurs in alert dialog box : "Error type : LoadXML, Description : Incorrect XML" some ideas? Could you help me? Regards Answer posted by Support on Nov 21, 2008 06:36 IE supports only UTF-8 encoding for loadXMLSring, this is limitation of browser , which can't be fixed. Answer posted by DL on Nov 21, 2008 06:54 Sorry, I didn't add you that i use Mozilla Firefox. My problem appears with firefox. regards. Answer posted by DL on Nov 21, 2008 07:44 I tried to put the xml string (<?xml version="1.0" encoding="UTF-8"?><rows><head><column id="TypeOperationVirt.Fonctions" width="250" type="tree" align="left">Fonctions</column><column id="TypeOperationVirt.Avance" width="85" type="ch" align="left" sort="na">Avancé</column><column id="TypeOperationVirt.Consultation" width="85" type="ch" align="left" sort="na">Consultation</column><column id="TypeOperationVirt.Creation" width="85" type="ch" align="left" sort="na">Création</column><column id="TypeOperationVirt.Historique" width="85" type="ch" align="left" sort="na">Suppression</column><column id="TypeOperationVirt.Modification" width="85" type="ch" align="left" sort="na">Modification</column><column id="TypeOperationVirt.Suppression" width="85" type="ch" align="left" sort="na">Suppression</column></head></rows>) in a xml file. Then I used loadXML function and it was working fine! I hope this information could help you. I have to use loadXMLString in my project. Please help me. Regards. Answer posted by Support on Nov 21, 2008 07:51 The same code works correctly locally. ( in FF ) Working sample send by email. Which version of dhtmlxgrid you are using? If you are using dhtmlxgrid 2.0 and issue still occurs for you - please provide any kind of sample where problem can be reconstructed (you can send it directly to support@dhtmlx.com ) |