Sign in to follow this  
cubicalmonkey

Problem hiding message logger refToChart.hideLog();

Recommended Posts

I'd like to use the message logger to handle data in a realtime angular gauge however I would like it hidden by default.

 

 

 

Here's my javascript function which I call in the XML.

 

 

 

 

 

function messageHand(strMsgId){

 

var refToChart = getChartFromId("ChId1");

 

refToChart.hideLog();

 

document.getElementById("test").value = strMsgId;

 

 

 

}

 

 

 

Part of the XML

 

chart useMessageLog='1' messageGoesToJS='1'registerWithJS='1' messageJSHandler='messageHand' ...

Share this post


Link to post
Share on other sites

Managed to resolve this by...

 

 

 

Registering with the JS as the documentation mentions... (over sight on my part)

 

var myChart2 = new FusionCharts("Charts/AngularGauge.swf", "myChart2Id", "320", "320", "0", "1");

 

 

 

Then in my funciton, calling:

 

var refToChart = getChartFromId("myChart1Id");

 

refToChart.hideLog();

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
Sign in to follow this