Sign in to follow this  
Guest Madhumita

FusionMaps fails on strings with double quotes, but works fine w/ the exact same string w/ single quotes

Recommended Posts

Perhaps this is the expected behavior and I'm missing something, but I did my searching and didn't see any references to it.

 

 

 

The following code creates a simple WorldMapWithCountries chart:

 

 

xml = ""

 

chart = new FusionMaps(swf, chartId, "935", "350", "0", "1");

 

chart.setDataXML(xml);

 

chart.render(divId);

 

}

 

 

 

 

changing the first line to:

 

xml = ''

 

 

 

causes it to fail. The only difference is which quotes are being used. Am I missing something about how this works?

 

 

 

Thanks for your time,

 

 

 

-- Henry

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

Welcome to FusionCharts Forum. :)

The code should run for both double and single quotes.

Here is the code we are using in

var xml=' ';

  var map = new FusionMaps("../Maps/FCMap_WorldwithCountries.swf", "Map1Id", "2160", "1130", "0", "0");

  map.setDataXML("xml");

  map.render("mapdiv");

Share this post


Link to post
Share on other sites

I've attached a screenshot of the source that is giving me trouble. I've had several people look at this and seeing as it's only one line the mistake should be obvious but I don't see it.

 

 

 

Again, thanks for your time.

 

 

 

-- Henry

post-4377-128441578765_thumb.png

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

The code works for us.

Please use the latest version of FusionCharts.js file.

 

You will not face the error then.

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