gludington

Events Not Firing With Setdataurl/setxmlurl

Recommended Posts

I am using the JS events to make other things happen on my page in response to chart events, but events are firing inconsistently. First, using setDataURL:

 

Initial Successful Chart Draw:

- DataLoadRequested

- DataLoadRequestCompleted

- BeforeDataUpdate

- DataLoaded

- DrawComplete

 

setDataURL() called a second time:

- DataLoaded

- BeforeDataUpdate

- DrawComplete

 

Iniital Failed Chart Draw using setDataURL():

- DataLoadRequested

- DataLoadError

 

setDataURL() called a second time:

- NO EVENTS ARE FIRED AT ALL

 

So when we call setDataURL() a second, third, fourth, etc time, we *never* fire the pre-request events such as DataLoadRequested, or any error events. This makes it impossible to have a page respond to fusioncharts events.

 

Using setXMLUrl() is different, but still fails:

 

Initial Successful Chart Draw:

- DataLoadRequestCompleted

- BeforeDataUpdate

- DataLoaded

- DrawComplete

 

setXMLUrl() called a second time:

- DataLoadRequested

- DataLoadRequestCompleted

- BeforeDataUpdate

- DataLoaded

- DrawComplete

 

Initial Failed chart Draw using setXMLUrl()

- DataLoadRequested

- DataLoadRequestCompleted

- BeforeDataUpdate

- DataLoaded

- DrawComplete

- NoDataToDisplay

 

Here, we have the opposite problem -- DataLoadRequested is usually not fired on the *first* draw if the chart is not yet ready, but is on subsequent reloads.

 

The 'NoDataToDisplay' event is also a bit problematic, as I am triggering this error by resetting the connection. I would think this should fire a 'DataLoadError' event, as this usually indicates a server error, and not no Data to Display. A 404 is handled correctly as an error

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

Could you please send us a screenshot or any live link to look into the issue from our end?

 

Awaiting for your reply.

Share this post


Link to post
Share on other sites

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

Could you please send us a screenshot or any live link to look into the issue from our end?

 

Awaiting for your reply.

 

 

Hi,

 

I am facing similar issue.

 

When i Reload the Data of a chart thru setDataURL(), the event is not getting fired.

 

In IE7 it gives "Unspecified Error". But it works fine in Mozilla Firefox.

 

Can you please help me on the issue?

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

Could you please send us the entire code to look into the issue?

 

Awaiting for your response.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now