jmanico Report post Posted August 2, 2007 (edited) My XML uses double instead of single quotes for the metadata. For example - I use <chart caption="Monthly Chocolate Usage" bgColor="c7c7c7" xAxisName="Month" yAxisName="Chocolate Usage" numberSuffix=" KWh" showValues="0" useRoundEdges="1"> instead of <chart caption='Monthly Chocolate Usage' bgColor='c7c7c7' xAxisName='Month' yAxisName='Chocolate Usage' numberSuffix=' KWh' showValues='0' useRoundEdges='1'> When I embed a link to the double-quoted XML from HTML, the chart loads just fine. But when I try to load this exact same XML via FusionChart.js ajax style in javascript, it breaks the chart. Any clue why this is? Edited August 2, 2007 by Guest Share this post Link to post Share on other sites
Pallav Report post Posted August 6, 2007 Because then you've a conflict of quotes like below: chart.setDataXML("<chart caption="..." which breaks code. Share this post Link to post Share on other sites
MrFast Report post Posted August 29, 2007 Hi jmanico and Pallav, Just replace all double quotes with backslash-double quote. I believe this would work from JavaScript and not break the string for the dataXML function: <chart caption="Monthly Chocolate Usage" bgColor="c7c7c7" xAxisName="Month" yAxisName="Chocolate Usage" numberSuffix=" KWh" showValues="0" useRoundEdges="1"> Regards, /Hans Share this post Link to post Share on other sites