Sign in to follow this  
hem

Aspx Page Events Are Not Firing

Recommended Posts

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

post-13963-035347000 1300362490_thumb.jpg

Edited by hem

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