|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 7/20/2007 4:23:11 AM
Posts: 4,
Visits: 10
|
|
| Hi, When I try to use javascript functions in a chart (last parameter = "1"), I have a javascript error in IE7 (it works in FireFox). In another post i read : Please make sure that you're not placing the chart inside a FORM element. When the chart is inside a FORM element, the browser cannot access the chart using DOM. In ASP.Net, everything is in a FORM element. How can I use javacsript functions in ASP.Net ? Thank you for your answer. Philippe.
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: 7/2/2008 7:57:52 PM
Posts: 1,956,
Visits: 468
|
|
If you're using the chart inside FORM elements, I'm afraid you cannot use the JavaScript API, as the API cannot then locate the chart in the page DOM.
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 7/20/2007 4:23:11 AM
Posts: 4,
Visits: 10
|
|
| Thank you. So it means that, in Asp.Net, i can't use the "RenderChart" method and i have to use only the "RenderChartHTML" method ? Philippe.
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: 7/2/2008 7:57:52 PM
Posts: 1,956,
Visits: 468
|
|
You can use renderChart too - but once the chart has initialized and rendered the initial data, you cannot change the data at client side (using JavaScript).
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 9:19:06 AM
Posts: 679,
Visits: 1,083
|
|
Hi, You can use the renderChart function and alos using registerwithJS option on. IE has some disabilities registering elements inside FORM. But it has a solution. You need to add an extra line of java script code after you render the chart.
if(!document.embeds[chartId]) window[chartId]=document.getElementById(chartId);
We have successfully implemented this in FusionCharts.js (you can try the updated one pasted here)and will soon release the updated version after other stability tests are over.
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|