hem Report post Posted March 17, 2011 (edited) Hi, Two charts are generating based on the selected Year(as shown in attached screen shot) . Here two graphs are nothing but two .aspx pages(as shown in attached screen shot). We are calling these these .aspx pages in java script as shown below code. Charts are generating inconsistently each time means charts are not generating in selected period.This is because of some times aspx page events are not firing(). Please help me , What is the problem ? In attached screen shot scenario second page event is not fired that's y the chart generated worngly. function pageLoad() { hiddenTextBox = document.getElementById("ctl00_ContentPlaceHolder1_hdnForTree"); rcbTextBox = document.getElementById("ctl00_ContentPlaceHolder1_HiddenField1"); if (hiddenTextBox != null && hiddenTextBox.value == "1") { GenerateChartForBasicReport(); } function GenerateChartForBasicReport() { var myChartOppt = new FusionCharts("App/StackedColumn2D.swf", "chartByOppt", "940", "200", "0", "1"); myChartOppt.addParam("WMode", "Transparent"); [color="#ff0000"]myChartOppt.setDataURL("SubReports/GrossSalesByOppurt.aspx");[/color] myChartOppt.render("DivchartByOppt"); var myChartCountry = new FusionCharts("App/StackedColumn2D.swf", "chartByCountry", "940", "200", "0", "1"); myChartCountry.addParam("WMode", "Transparent"); [color="#ff0000"]myChartCountry.setDataURL("SubReports/GrossSalesByCountry.aspx");[/color] myChartCountry.render("DivchartByCountry"); } Thanks, Hemanth Edited March 17, 2011 by hem Share this post Link to post Share on other sites