Sign in to follow this  
catalysis

HTML Encoded "<" sign throws error

Recommended Posts

When I try to use

<

on the lowerLimitDisplay property of an angular gauge, I get an XML error. However if I use

>

, which is the > sign, it works fine. Is this a known bug and is there a workaround? A response one way or another would be appreciated. thanks.

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

< works on our charts. It throws no such error.

You can use < in place of < .

If this does not help could you please try upgrading your version of FusionCharts.js and see if it helps?

 

Also, could you please tell us which version of FusionCharts you are using?

Share this post


Link to post
Share on other sites

Hello Madhumita,

 

 

 

You are right. The ">" symbol or its encoded value does not throw any error. But the "<" symbol or "%3C" will throw a invalid XML message when you use the setDataXML method.

 

 

 

If we use the setDataURL it works fine. But "<" throws error when used with setDataXML. We are having issues with this. If you can work with your team to see how this can be avoided without replacing the character that would be fantastic.

 

 

 

Srikanth

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Srikanth,

Could you please send us the XML codes that you are using, as an attachment so that we might test it in our lab?

Awaiting your reply.

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

For dataXML method please consider using < in place of '<'.

If this does not work please upgrade your version of FusionCharts. 

Share this post


Link to post
Share on other sites

Hello Basundhara,

 

 

 

Please find the attached html to see exactly what we are using.

 

 

 

This would not work if there is a "<" or "%3C" in the string. If I replace the"<" or "%3C" with "<" it works but we might not be able to use "<" on the serverside decoding. Can you try it in the test lab and see if some thing can be done to fix this.

 

 

 

Thanks,

 

Srikanth

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Srikanth,

Could you please try URLEncode [in JS please use escape('URL')] for the link URL and try again?

Example:

var url = escape('location');

I hope this helps.

Share this post


Link to post
Share on other sites

Well at least I know I'm not crazy.  I'm not sure why you guys are having so much trouble replicating the error.  It's very simple.

With FusionCharts 3.1.1

<chart lowerLimitDisplay="<" >
<dials>
<dial value="0" rearExtension="10" baseWidth="10"/>
</dials>
</chart>

Replace

<

with

>

and it works fine.

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello catalysis,

 

 

 

We could replicate the issue you are facing. When the value='0' then this issue is happening. However, if you set value='0.01'(i.e anything above 0) then the chart limits are displayed properly.

 

 

 

We will get back to you if we find a solution to this issue.

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