problem in XML % character
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



problem in XML % character Expand / Collapse
Author
Message
Posted 5/30/2008 1:37:36 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/30/2008 8:19:16 AM
Posts: 4, Visits: 8
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");

Thanks, []

Post #6492
Posted 5/30/2008 2:52:55 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 10:52:26 PM
Posts: 626, Visits: 1,913
Please use %25 for %

Thanks,
Arindam

FusionCharts Team
www.fusioncharts.com

Post #6493
Posted 5/30/2008 8:22:09 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/30/2008 8:19:16 AM
Posts: 4, Visits: 8
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? 

Thanks, []
Post #6502
Posted 6/2/2008 1:25:12 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 10:52:26 PM
Posts: 626, Visits: 1,913
hi khushi,

 For ( & ), you can use %26 or %26amp;


Thanks,
Arindam

FusionCharts Team
www.fusioncharts.com

Post #6534
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 11:13pm


Execution: 0.078.