FC_Rendered equivalent after calling setDataURL?
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



FC_Rendered equivalent after calling... Expand / Collapse
Author
Message
Posted 3/14/2007 10:53:51 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/22/2007 8:36:19 AM
Posts: 5, Visits: 17
FusionCharts calls the FC_Rendered function after initially rendering a chart on the page, however is there an equivalent to the FC_Rendered function that gets called after a subsequent setDataURL call? I want to trigger a chart update (after the initial load) from a UI element and I want another part of my page to be updated once the chart has been updated.
Post #533
Posted 3/15/2007 6:47:12 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: Today @ 1:08:34 AM
Posts: 2,183, Visits: 515
I'm afraid we've intentionally blocked FC_Rendered call during subsequent setDataURL calls, as it was leading to confusions while rendering.

Thanks,
Pallav Nadhani
FusionCharts Team
Post #544
Posted 3/15/2007 9:24:58 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/22/2007 8:36:19 AM
Posts: 5, Visits: 17
Can we hope for some sort of alternate JavaScript hook, perhaps FC_Updated? When it takes a few moments for the data to generate and then get sent back into the FusionChart, I would like to give our users a bit of feedback so that they are not rapidly clicking the (custom) refresh button thinking that their requests were not performed.
Post #550
Posted 3/16/2007 1:41:15 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: Today @ 1:08:34 AM
Posts: 2,183, Visits: 515
The idea is that when the chart is loaded first time, only then you need to know that the chart has loaded and rendered.

When updating the chart subsequently, you already know the event - because the event is triggered by you.

However, if you still need FC_Updated function, I can tell you where to modify the .fla to call the same.

Thanks,
Pallav Nadhani
FusionCharts Team

Post #563
Posted 3/16/2007 10:00:44 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/22/2007 8:36:19 AM
Posts: 5, Visits: 17
Yes, we do know that we are updating the chart, however the call to setDataURL does not wait for the update to complete before returning control to the calling JavaScript. I don't think it would be a good idea for setDataURL to hold on to control because this would cause everything else to be on hold, so I figured there would be another callback function just like FC_Rendered.

I'm not versed in Flash coding, nor even sure if I have the tools to modify (compile?) the code. In any case, perhaps your modification suggestion might help others who see this post, so please offer up your suggestion.

Thanks.
Post #574
Posted 3/19/2007 1:57:01 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: Today @ 1:08:34 AM
Posts: 2,183, Visits: 515
In each .fla file > Chart Scene > Actions Layer > Frame 1 > Actions, you'll have to add the following code just before the line containing "stop()":

if (ExternalInterface.available && _registerWithJS && renderRegistered){
 ExternalInterface.call("FC_Update", _DOMId);
}


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


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 8:54am


Execution: 0.094.