|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 9/29/2007 5:02:14 AM
Posts: 5,
Visits: 10
|
|
| Hi I am using the column3d chart in the web page which was kept in the form(with runat server) tag.But when i am running this it is showing the javscript error that the chartid is undefined. Eventhough i tried for identifying the chartid using the document.getElementById it is identifying the chart and after that i used chartid.setDataURL(url).but it is showing another error that that the object doesnt support this method. Please could you tell me the solution regarding this? and also could you tell me regarding the issue? Thanks and Regards, Y.AshokKumar.
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: Today @ 12:15:43 AM
Posts: 2,228,
Visits: 540
|
|
| You need to necessarily keep the chart outside <FORM> element. When a Flash object is placed inside <FORM> element, the browser DOM cannot access it.
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 10/10/2007 2:11:32 AM
Posts: 1,
Visits: 3
|
|
| and that means that your charts CAN'T be used in dinamically ASP.NET applications?? (using normar development methods) that is strange... and not let to use your software for any development
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 1:24:22 AM
Posts: 903,
Visits: 1,509
|
|
| hi all, FusionCharts is fully compatible with ASP.NET irrespective of <FORM> tag. Adobe has already declared that in IE there is some problem connecting Flash component (externalinterface) with HTML's Javascript if put inside FORM. But where there's a will there's a way. http://www.adobe.com/go/kb400730 I have developed some samples (using ASP.NET 2.0 VB/C# and ASP.NET 2.0 AJAX too) of FusionCharts similar to all the Basic samples given in FusionCharts package where there is option to identify chart and chage data dynamically using setDataURL and setDataXML. Actually i have done no extra thing, but just changed the language from ASP to VB and C#.
If you are somehow facing problems identifying the chart add one javascript after the chat is rendered..(this is recommended by Adobe)..
if(!document.embeds[chartId]) window[chartId]=document.getElementById(chartId); //or else document.forms[formName/formIndex][chartId]
This will help you to identify the chart... You can chage the getChartFromId() in FusionCharts.js too... infosoftglobal.FusionChartsUtil.getChartObject = function(id) { // if (window.document[id]) { // return window.document[id]; // } if (navigator.appName.indexOf("Microsoft Internet")==-1) { if (document.embeds && document.embeds[id]) return document.embeds[id]; } else { return document.getElementById(id); } } this worked in IE 6/7, Firefox, Opera 9...i have no morebrowsers installed but will surely check in Safari soon..
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|