Better javascript callbacks?
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Better javascript callbacks? Expand / Collapse
Author
Message
Posted 2/25/2008 4:20:22 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2/25/2008 5:21:30 PM
Posts: 2, Visits: 6
We really need a better javascript callback system from FusionCharts. FC_Rendered() is finicky and causing many headaches. What I'd really like to see is something like this:


var myChart = new FusionCharts({
settings_file:"somesettings.xml",
dataURL:"data.xml",
id:"mySpiffyChart",
width:500,
height:400,
onInit:{
animation:true,
callback: function() {
alert("this chart is has inited!");
}
},
onReload:{
animation:false,
callback: function() {
alert("this chart is has reloaded!");
}
}
});


That way I can have as many charts as I need and each one can have it's own callback instead of everyone sharing FC_Rendered()

Does that make sense? Thoughts?

Thanks,
brian
Post #4708
Posted 2/28/2008 7:39:32 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: Yesterday @ 8:20:12 AM
Posts: 2,194, Visits: 521
Brian,

I'm afraid you cannot do that. But in FC_Rendered(strDOMId), we pass the DOMId of each chart as a parameter. So, internally you could just put an if-then or switch-case to redirect the load to different methods.


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


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 6:55pm


Execution: 0.047.