Sign in to follow this  
Khushi

problem in XML % character

Recommended Posts

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this