setDataURL inconsistency
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



setDataURL inconsistency Expand / Collapse
Author
Message
Posted 1/30/2007 4:47:46 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/7/2007 12:41:00 PM
Posts: 3, Visits: 8
Hi,

When using the FusionCharts.js i discovered the "you must encode URL's if using URL's that look like .asp?moo=foo" when using the setDataURL function from FusionCharts.js.

However, i discovered this is NOT an issue after the chart object has been initialized.

for example i initialize my chart:


var chart = new FusionCharts("SelectScatter.swf", "selectChart", "570", "700", "0", "1");
chart.setDataXML('');
chart.render('chartDiv');



If i replace the chart.setDataXML with chart.setDataURL("generateChart.aspx?moo=foo&ice=cold"), it gives me headaches (this happens with fusioncharts and powercharts). BUT later, i have a form updating the setDataURL:


function changeChart(chartID,urlValue){

var chartObj = getChartFromId(chartID);
chartObj.setDataURL(urlValue);
}


This works just fine, with the urlValue being something like "generateChart.aspx?moo=foo&ice=cold" without having to encoding the URL (replace unsafe characters with hex). I wonder if the encode URL restriction on setDataURL is a FusionCharts.js problem? should i be encoding the URL just incase though?

also, where do i find documentation for those last two parameters for initializing a chart?
Post #245
Posted 1/31/2007 2:43:08 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 2 days ago @ 7:11:27 AM
Posts: 2,183, Visits: 513
We insist on always encoding the URL before providing it to FusionCharts.

Thanks,
Pallav Nadhani
FusionCharts Team
Post #248
Posted 10/31/2007 1:19:53 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Yesterday @ 11:38:11 PM
Posts: 869, Visits: 1,381
Hi,
For the reference of FusionCharts Javascript class's Constructure parameters..
FusionCharts("SWF PATH+NAME","ChartId","WIDTH","HEIGHT","DebugMode ON/OFF(values= 1/0)", "RegisterWithJS(1/0)")

For DebugMode please visit :http://fusioncharts.com/docs/Contents/Debug/window.html

For Register with JS please visit : http://fusioncharts.com/docs/Contents/JS_Overview.html


Regards,

Sudipto Choudhury
FusionCharts Team
Post #2905
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 2:52am


Execution: 0.172.