Khushi Report post Posted May 30, 2008 Hi, I have got an problem while using setDataXML method in which input string contain '%' but when i put the same string in xml and used setDataURL method the Fusionmap worked fine. But in my application I have xml string not xml file , so can you please help me regarding this? the code i have used is: var map = new FusionMaps("Maps/FCMap_World.swf", "Map1Id", "750", "460", "0", "0"); map.setDataXML("<map imageSave='1' imageSaveURL='FusionChartsSave.jsp?name=image_world1.jpg' borderColor='005879' fillColor='D7F4FF' numberSuffix='%' includeValueInLabels='1' labelSepChar=': ' baseFontSize='9'><data> <entity id='NA' value='515' /><entity id='SA' value='373' /><entity id='AS' value='3875' /><entity id='EU' value='727' /><entity id='AF' value='885' /><entity id='AU' value='32' /></data></map>"); map.render("mapdiv"); Share this post Link to post Share on other sites
Arindam Report post Posted May 30, 2008 Please use %25 for % Share this post Link to post Share on other sites
Khushi Report post Posted May 30, 2008 ya i know that but in that why it work fine in XML file? and I am facing same problem while putting %26 for '&' so in this case what can I do? Share this post Link to post Share on other sites
Arindam Report post Posted June 2, 2008 hi khushi, For ( & ), you can use %26 or %26amp; Share this post Link to post Share on other sites