Sign in to follow this  
percyspooner

Ampersan in "link"

Recommended Posts

Hi all.

 

 

 

My company has recently purchased a license for Fusion Charts and I've recently come across a problem that I cannot solve.

 

 

 

When I'm adding a link to the chart, one of the parts of the link contains an ampersand (M&D).

 

 

 

I have replaced the ampersand with %26 as per HTML standard but when I then click on the chart and are brought to the page with the link, the %26 is translated back into an ampersand in the URL.

 

 

 

So I have link='http://www.blablabla.jsp?ordid=M%26D' in my XML which doesn't cause any errors with the chart,

 

I click on it and in the URL, I see http://www.blablabla.jsp?ordid=M&D which really messes things up for me.

 

 

 

I am using java to generate the XML too but that should have nothing to do with the problem

 

Thanks in advance

Share this post


Link to post
Share on other sites

Hi,

Welcome to FusionCharts Forum. :)

Could you please try setting the attribute 'unescapeLinks' to '0' in <chart> element of your XML?

Hope this helps. :)

 

 

Share this post


Link to post
Share on other sites
Sanjukta Mukherjee (7/7/2010)
Hi,

 

 

 

Welcome to FusionCharts Forum. :)

 

 

 

Could you please try setting the attribute'unescapeLinks' to '0' in <chart> element of your XML?

 

 

 

Hope this helps. :)

 

 

 

 

 

 

Hi Sanjukta,

 

Thanks for the reply

 

 

 

I tried using unescapeLinks but it made no difference

 

 

 

When I view the source code, the link is printed as "customername=AT%26T Wireless"

 

When I click on the chart then, it translates the %26 to & as follows customername=AT&T%20Wireless

 

 

 

Thanks

Share this post


Link to post
Share on other sites

Hi,

You are welcome. :)

Could you please let us know the version of FusionCharts that you are currently using?

The latest version, FusionCharts v3.1.1 supports the attribute "unescapeLinks".

In case, you are not using FusionCharts v3.1.1, please refer to the following link to upgrade your version:

Ref.- http://www.fusioncharts.com/PUC/

Also, in case you feel your parser is decoding the URL encoded format, then you can double encode "%26" to "%2526" for resolving the issue.

Hope this is of some help.

Please revert in case you have further queries.

Share this post


Link to post
Share on other sites

Hi Sanjukta,

 

 

 

Sorry for leaving it so long to reply but It literally took me ages to find my username and password for the Product Update Center.

 

 

 

I assumed that my version was out of date but it actually is not, its v3.1.1

 

 

 

Could this actually be a problem with Internet Explorer?(I can't switch to another browser for many reasons)

 

 

 

Have you heard of this problem with anyone else?

 

 

 

Thanks

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