darshan Report post Posted March 24, 2008 I am using your fusionmaps in a .Net application. I am using setDataXML method and trying to use the "JavaScript functions as links". But even after passing the valid XML, swf is giving message "invalid XML data". and when I try using setDataURL method, and passing the same xml from external file, its working properly. Can't I use setDataXML for "JavaScript functions as links"? Share this post Link to post Share on other sites
Arindam Report post Posted March 24, 2008 Hi Darshan, Please send me the XML which is used in setDataXML. Actually when you are use javascipt function as link then that link must be url encoded then it will be work. Thanks, Arindam FusionCharts Team www.fusioncharts.com Share this post Link to post Share on other sites
darshan Report post Posted March 24, 2008 i am passing the below string to setdataXML method. i have used token overloader () to pass double qoutes... "<map borderColor='005879' fillColor='D7F4FF' numberSuffix=' Mill.' includeValueInLabels='1' labelSepChar=': ' baseFontSize='9'> <data> <entity id='NA' value='515' link="JavaScript:myJS('NA, 515');"/> <entity id='SA' value='373' link="JavaScript:myJS('SA, 373');"/> <entity id='AS' value='3875' link="JavaScript:myJS('AS, 3875');"/> <entity id='EU' value='727' link="JavaScript:myJS('EU, 727');"/> <entity id='AF' value='885' link="JavaScript:myJS('AF, 885');"/> <entity id='AU' value='32' link="JavaScript:myJS('AU, 32');"/> </data></map>" Share this post Link to post Share on other sites
FusionCharts Support Report post Posted March 24, 2008 Hi, Could you please use %36apos; instead of ' inside the link and ' instead of " in the link? " [/b]" Share this post Link to post Share on other sites
FusionCharts Support Report post Posted March 24, 2008 Hi, Could you please use this (The earlier post had some mistakes due to posting in Firefox) link='myJS(%26apos;NA, 515%26apos;);' Share this post Link to post Share on other sites
darshan Report post Posted March 24, 2008 Hey, its working...!!! thanks a lot... Share this post Link to post Share on other sites