|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 9/5/2007 10:14:56 PM
Posts: 1,
Visits: 2
|
|
<% @ Page Language="VB" AutoEventWireup="false" CodeFile="DBJScriptDataXML.aspx.vb" Inherits="DBJScript" %><! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">< html xmlns="http://www.w3.org/1999/xhtml" >< head runat="server"><title>DataXML, Database and JavaScript</title><SCRIPT LANGUAGE="Javascript" SRC="JSClass/FusionCharts.js"></script><SCRIPT LANGUAGE="JavaScript">var data = new Array();<%=GetScript()%> function updateChart(factoryIndex){var strXML = "<chart palette='2' caption='Factory " + factoryIndex + " Output ' subcaption='(In Units)' xAxisName='Date' showValues='1' labelStep='2' >";var i=0;for (i=0; i<data[factoryIndex].length; i++){strXML = strXML + "<set label='" + data[factoryIndex][i][0] + "' value='" + data[factoryIndex][i][1] + "' />";} strXML = strXML + "</chart>"; var chartObj = getChartFromId("FactoryDetailed");//chartObj is undefined chartObj.setDataXML(strXML); //Object does not support property or method} </SCRIPT> </head> <body> <center><h4>Inter-connected charts.</h4><% =getFactorySummaryChartHtml()%><p><% =getFactoryDetailedChartHtml()%></center><form id="form2" runat="server"></form></ body></html>
This is in accordance to Database and javascript example dataXML, everything loads fine but the javascript doesnt work, im facing this problem with dataURL method too..
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: 2 days ago @ 7:11:27 AM
Posts: 2,183,
Visits: 513
|
|
What chart SWF are you using it against and what error are you getting?
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 9/29/2007 5:02:14 AM
Posts: 5,
Visits: 10
|
|
| hi, you keep the <form method="post"></form> and after that you use the chart... You try this.I think this may work...... Cheers, Y.AshokKumar.
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Yesterday @ 11:38:11 PM
Posts: 869,
Visits: 1,381
|
|
hi,
can you please tell me the javaScritp error that you are getting using your code.
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|