jeffrey

Members
  • Content count

    6
  • Joined

  • Last visited

About jeffrey

  • Rank
    Forum Newbie
  1. Bug for VLED.swf

    thanks god, finally , i sloved the problem by myself,this file's code should be like this:<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RealTimeData.aspx.cs" Inherits="水池测试Web.fusioncharts.data.RealTimeData" %>,do not allow anyother code like <html></html> etc.
  2. finally , i sloved the problem by myself,this file's code should be like this:<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RealTimeData.aspx.cs" Inherits="水池测试Web.fusioncharts.data.RealTimeData" %>,do not allow anyother code like <html></html> etc.
  3. Bug for VLED.swf

    anybody help?
  4. show my code first: have already using : <script src="../js/FusionCharts.js" type="text/javascript"></script> my body: <div id="chartContainer"> FusionWidgets will load here!</div> <script type="text/javascript"><!-- var myChart = new FusionCharts("../Charts/VLED.swf", "myChartId", "350", "400", "0", "1"); myChart.setXMLUrl("led.xml"); myChart.render("chartContainer"); // --> </script> xml code: <chart lowerLimit="10" upperLimit="1000" lowerLimitDisplay="Bad" upperLimitDisplay="Good" palette="1" numberSuffix="m³" chartRightMargin="20" decimals="0" dataStreamURL="RealTimeData.aspx" refreshInterval="3" > <colorRange> <color minValue="0" maxValue="75" code="FF654F" label="Bad"/> <color minValue="75" maxValue="90" code="F6BD0F" label="Moderate"/> <color minValue="90" maxValue="100" code="8BBA00" label="Good"/> </colorRange> <value>43</value> <styles> <definition> <style type="font" name="myValueFont" bgColor="F1f1f1" borderColor="999999"/> </definition> <application> <apply toObject="Value" styles="myValueFont"/> </application> </styles> </chart> RealTimeData.aspx.cs code: protected void Page_Load(object sender, EventArgs e) { //Define variable int randomValue; string dateTimeLabel; //Define limits int lowerLimit = 30; int upperLimit = 35; //Create random object System.Random rand; rand = new System.Random(); //Generate a random value randomValue = (int)rand.Next(lowerLimit, upperLimit); //Get date object DateTime objToday = DateTime.Now; //Create time string in hh:mm:ss format dateTimeLabel = objToday.Hour + ":" + objToday.Minute + ":" + objToday.Second; //Now write it to output stream Response.Write("&value="+randomValue); } the problem is:the program can run in the RealTimeData.aspx file,and also respose.write the formatt code like "&value=34",and every 3 seconds will run in this file again.but the VLED.swf is always show the value=43,do not update .is it my program's mistake?if it is,please Pointed out that to me ,thank you very much!the files location is like the picture showed,in the attachment. Thanks, Jeffrey
  5. Bug for VLED.swf

    show my code first: have already using : <script src="../js/FusionCharts.js" type="text/javascript"></script> my body: <div id="chartContainer"> FusionWidgets will load here!</div> <script type="text/javascript"><!-- var myChart = new FusionCharts("../Charts/VLED.swf", "myChartId", "350", "400", "0", "1"); myChart.setXMLUrl("led.xml"); myChart.render("chartContainer"); // --> </script> xml code: <chart lowerLimit="10" upperLimit="1000" lowerLimitDisplay="Bad" upperLimitDisplay="Good" palette="1" numberSuffix="m³" chartRightMargin="20" decimals="0" dataStreamURL="RealTimeData.aspx" refreshInterval="3" > <colorRange> <color minValue="0" maxValue="75" code="FF654F" label="Bad"/> <color minValue="75" maxValue="90" code="F6BD0F" label="Moderate"/> <color minValue="90" maxValue="100" code="8BBA00" label="Good"/> </colorRange> <value>43</value> <styles> <definition> <style type="font" name="myValueFont" bgColor="F1f1f1" borderColor="999999"/> </definition> <application> <apply toObject="Value" styles="myValueFont"/> </application> </styles> </chart> RealTimeData.aspx.cs code: protected void Page_Load(object sender, EventArgs e) { //Define variable int randomValue; string dateTimeLabel; //Define limits int lowerLimit = 30; int upperLimit = 35; //Create random object System.Random rand; rand = new System.Random(); //Generate a random value randomValue = (int)rand.Next(lowerLimit, upperLimit); //Get date object DateTime objToday = DateTime.Now; //Create time string in hh:mm:ss format dateTimeLabel = objToday.Hour + ":" + objToday.Minute + ":" + objToday.Second; //Now write it to output stream Response.Write("&value="+randomValue); } the problem is:the program can run in the RealTimeData.aspx file,and also respose.write the formatt code like "&value=34",and every 3 seconds will run in this file again.but the VLED.swf is always show the value=43,do not update .is it my program's mistake?if it is,please Pointed out that to me ,thank you very much!the files location is like the picture showed,in the attachment. Thanks, Jeffrey