setDataXML can't handle <
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



setDataXML can't handle < Expand / Collapse
Author
Message
Posted 5/12/2008 11:57:59 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/13/2008 2:16:07 PM
Posts: 3, Visits: 7
For some reason JS setDataXML does not handle the
<
correctly. I get the invalid XML error when I tired using the
<
character. I tried a couple of recommendations from forum using %3C and < with styles to no avail.

It works if I return the xml chart using the setDataURL. I tried the
>
and it works using %3E encoding.

Any thoughts or suggestions are greatly appreciated.

Regards,
Khy
Post #6234
Posted 5/13/2008 1:31:46 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 4:19:22 AM
Posts: 885, Visits: 1,422
Hi,

Could you pelase try using &lt;(in dataURL method) or %16lt;(in dataXML method)? 

Please note that < is not supported in vFREE charts.

Regards,

Sudipto Choudhury
FusionCharts Team

Post #6235
Posted 5/13/2008 1:43:00 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/13/2008 2:16:07 PM
Posts: 3, Visits: 7
I tired using < in the setDataURL and it works fine. That is why I find it odd. May there is some processing in the JS script when it retrieves the xml content from a URL.

Also I tried the %16lt; in setDataXML, the result is the "%16" portion gets converted to appropriate character but the remaining string "lt;" is still there. I tried %3C but in setDataXML the result is invalid XML error.

The version is the developer product.

Regards,
Khy


Post #6237
Posted 5/13/2008 2:57:47 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 4:19:22 AM
Posts: 885, Visits: 1,422
opps...please igonre the typo %16..

Please use %26lt;

Regards,

Sudipto Choudhury
FusionCharts Team

Post #6241
Posted 5/13/2008 9:00:21 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/13/2008 2:16:07 PM
Posts: 3, Visits: 7
Sudipto,

It works !!! Thanks. I am crossing my finger the next version will work with this type of fix as it is different than what gets passed to getDataURL.

Regards,
Khy
Post #6244
Posted 5/18/2008 10:00:16 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 2 days ago @ 8:20:12 AM
Posts: 2,194, Visits: 521
It's not a bug precisely. It's the way the browser treats XML.

Thanks,
Pallav Nadhani
FusionCharts Team
Post #6299
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 8:44pm


Execution: 0.047.