Identifying the chart control(in the form with runat server) in javascript
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Identifying the chart control(in the form... Expand / Collapse
Author
Message
Posted 8/23/2007 1:08:56 AM
Forum Newbie

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

Post #2075
Posted 8/24/2007 2:22:29 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts 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

Post #2083
Posted 10/9/2007 11:37:20 PM
Forum Newbie

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

Post #2668
Posted 10/14/2007 2:09:48 AM
Supreme Being

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

Post #2708
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 3:59am


Execution: 0.125.