Problem with <
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Problem with < Expand / Collapse
Author
Message
Posted 6/6/2007 3:30:56 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 11/1/2007 3:02:27 AM
Posts: 2, Visits: 6
Hi,

  I am creating xml for fusion chart display in my jsp using javascript. I have created the xml string and passed it to the method setDataXML().

The problem I am facing is that in that XML string when I use < sign in the label part of category, then it says Invalid xml while displaying that chart.

<category label = ' XXX < XXX' ... />

And I have tried using &lt; as well

What could be possible solution for this?

I hope you got my problem. If not, then let me know what all code parts should I provide you.

Post #1219
Posted 6/7/2007 1:40:04 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 7/29/2008 12:15:49 PM
Posts: 2,001, Visits: 474
You necessarily need to use dataURL method and use this characater as explained at http://www.fusioncharts.com/docs/Contents/SpChar_LT.html

Thanks,
Pallav Nadhani
FusionCharts Team
Post #1245
Posted 9/7/2007 10:13:57 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 9/7/2007 10:09:32 AM
Posts: 1, Visits: 2
Hi,

I just found out that you can use the code %26lt; as < in xml string for setDataXML.
It seems setDataXML convert the string twice, first it converts %26 to & ,
and then the second conversion will change & lt; to the correct <.
That is why we can't use & lt; directly as string in setDataXML.
But this is only the case for the first setDataXML directly after chart creation (new FusionCharts(...)).
The following setDataXML to update the chart does only one string conversion, so you
can use & lt; as < directly as xml string for setDataXML.

Cahya.

Post #2283
« Prev Topic | Next Topic »


Permissions Expand / Collapse

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


Execution: 0.031.