Sign in to follow this  
veerugadde

Problem in IE with hiding elements(buttons) on the page after charts completes rendering

Recommended Posts

Hello,

 

 

 

We have version 3.1 of fusion charts and trying to implement batch export demo illustrated on your website.As implemented in the demo,i am trying to hide the enable buttons and hide the message (loading..).This works fine in firefox but in internet explorer it does not enable the buttons/hide the message which is totally awkward.Could any one please suggest me if i am missing anything ? I am also including the sample code using on charts render function.

 

 

 

 var totalCharts = 2;

var renderStateCounter = 0; 

function FC_Rendered(domId){	



		//It is in this method that you can update chart's data using JS methods.

		//Check if this is the chart that we want to update			



			//Enable the form now, as the chart has loaded

			this.document.productSelector.disabled = false;



			//Set chartLoaded flag to true

			chartLoaded = true;				



			//Get reference to chart object using Dom ID

			var chartObj = getChartFromId(domId);

			//Update it's XML - set animate Flag to true

  switch(domId)

   {	

		case "chart1Id":							

			renderStateCounter++;

			chartObj.setDataXML(generateXML(true));		

			break;	

		case "chart2Id":

			renderStateCounter++;

			chartObj.setDataXML(generateXML2(true));

			break;

		case "chart3Id":

			renderStateCounter++;

		    chartObj.setDataXML(generateXMLFatal(true));		    

              	break;

		case "chart4Id":

			renderStateCounter++;

			chartObj.setDataXML(generateXMLFatal1(true));            	

			break;				 

		case "chart5Id":

		    renderStateCounter++;					

			chartObj.setDataXML(generateXML3(true));		

			break;  	 

	}//switch	

   /*

	if(renderStateCounter >= totalCharts) {	



		showMessage();

		changeBtnDisabledTo(false);		    

	}



	return true;  

}[

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