steve65
-
Content count
3 -
Joined
-
Last visited
Posts posted by steve65
-
-
Sorry I must have misunderstood your solution, I am actually using the FusionCharts.dll and the vb.net examples
so I have something like this in HTML
<%=GetChart()%>
and code behind
Public function GetChart() as string Dim strXML as string = GetChartData(DateRange) return FusionCharts.RenderChart("fusioncharts/FCF_Column2D.swf","",strXML,"Chart1", "200","100", false,true) end function
Works fine first time but not on ajax async postback, not sure how i can use your javascript solution code.
-
Thanks for your help on this but how do I implement your Tip #1?
Where do I put this javascript?
TIP 1: If one is using registerWithJS, after rendering a chart one must use this :if(!document.embeds[chartId])
window[chartId]=document.getElementById(chartId); //or else document.forms[formName/formIndex][chartId]
thanks
ASP.NET Ajax UpdatePanel
in FusionCharts and ASP.NET
Posted · Report reply
Hi,
sorry its took so long to reply been busy!
Anyway thanks for your ajax example code it worked great for generating charts on 'postback' after the page has loaded.
However I wanted to generate the chart on 'Page Load' and then on 'Postbacks'
If you use RenderChartHTML on page load then you get the 'click to activate' message in IE.
If you use RenderChart on page load and then RenderChart on postbacks then the postback charts don't display.
However! If you use RenderChart on page load then RenderChartHTML on any postback then all problems are solved.
Not sure if there's an easier way around this but at least it works and I'm happy.