Javascript & ASPNet (Form element)
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Javascript & ASPNet (Form element) Expand / Collapse
Author
Message
Posted 7/19/2007 4:15:35 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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.

Post #1681
Posted 7/20/2007 2:19:44 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts 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
Post #1695
Posted 7/20/2007 4:31:13 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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.

Post #1702
Posted 7/21/2007 3:50:53 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts 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
Post #1710
Posted 11/4/2007 6:42:49 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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


  Post Attachments 
FusionCharts.js.txt (24 views, 10.87 KB)

Post #2968
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 6:58pm


Execution: 0.047.