Sign in to follow this  

a problem when update servral charts from another chart by javascript code

Recommended Posts

I want to  update servral charts from another chart by javascript code, it is possible?

I test it cannot, can somebody help me ? Thank you!

The javascript code is as follows:

function updateChart(strJQ){

  //DataURL for the chart

  var strURL = "data_msRiskAllArea.jsp?JQ=" + strJQ;

  strURL = escape(strURL);

  var chartObj = getChartFromId("m0");

  chartObj.setDataURL(strURL);//Send request for XML


  //DataURL for the chart

  var strURL1 = "data_VirusByArea.jsp?JQ=" + strJQ;

  strURL1 = escape(strURL1);

  var chartObj1 = getChartFromId("m2");

  chartObj1.setDataURL(strURL1);//Send request for XML  



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