User (Legacy) Posted January 23, 2003 Report Share Posted January 23, 2003 Hi, I need to reload the input data of my chart. I'm using a javascript reload but with this way, the user lose the customization of his charts (trand lines, colors changing). How can i reload the data witouth reload the wide page? My data are stored in a text file. Thank you, Paolo Capitani Link to comment Share on other sites More sharing options...
Software FX Posted January 23, 2003 Report Share Posted January 23, 2003 This text file is located on the server ? Right now you are loading the whole page ? -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 23, 2003 Author Report Share Posted January 23, 2003 Yes, this text file is on the same server where is chartFX. Now I'm reloading the whole page (with the javascript refresh keyword), the data update correctly, but I lose the chart customization. For example, if I change the background-color, when page reload the background come back withe... Thank you, Paolo Capitani "SoftwareFX Support" <support@softwarefx.com> wrote in message news:Uy6015vwCHA.1364@webserver1.softwarefx.com... > This text file is located on the server ? Right now you are loading the > whole page ? > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted January 23, 2003 Report Share Posted January 23, 2003 You can use the DataPath property in a Client-Side Script to download a Text File (data only) as follows: Chart1.DataPath = "http://localhost/data.txt" The text file needs to start with [ChartFXtxt] as the first line. For example: [ChartFXtxt] Sales Projected Jan 10 20 Feb 15 80 March 2 20 Apr 4 100 May 7 35 -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 26, 2003 Author Report Share Posted January 26, 2003 Doesn't works: <% dim chart 'Create the ChartFX Object Set chart = Server.CreateObject("ChartFX.WebServer") chart.datapath = "http://127.0.0.1/cell-data/charts/reloaddata.txt" %> Error message: "Property o method not supported from the object..." What's wrong? Thank you, Paolo Capitani "SoftwareFX Support" <support@softwarefx.com> wrote in message news:mOc9x2ywCHA.1368@webserver1.softwarefx.com... > You can use the DataPath property in a Client-Side Script to download a Text > File (data only) as follows: > > Chart1.DataPath = "http://localhost/data.txt" > > The text file needs to start with [ChartFXtxt] as the first line. > > For example: > > [ChartFXtxt] > Sales Projected > Jan 10 20 > Feb 15 80 > March 2 20 > Apr 4 100 > May 7 35 > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted January 27, 2003 Report Share Posted January 27, 2003 You said you wanted to do this in the client, the code you have here is running on the server: Set chart = Server.CreateObject("ChartFX.WebServer") chart.datapath = "http://127.0.0.1/cell-data/charts/reloaddata.txt" You need to assign the DataPath property using Java Script in the CLIENT, instead of the Refresh you now have. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 27, 2003 Author Report Share Posted January 27, 2003 I need to show to my client a chart that load data that are on the server. I tought that the way was to build an ASP page, but there was the problem to reload the data without reloading page. It's a wrong way? How can I do that? Have you some example? Thank a lot, Paolo Capitani "SoftwareFX Support" <support@softwarefx.com> wrote in message news:bmfmzHkxCHA.1384@webserver1.softwarefx.com... > You said you wanted to do this in the client, the code you have here is > running on the server: > > Set chart = Server.CreateObject("ChartFX.WebServer") > chart.datapath = "http://127.0.0.1/cell-data/charts/reloaddata.txt" > > You need to assign the DataPath property using Java Script in the CLIENT, > instead of the Refresh you now have. > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted January 28, 2003 Report Share Posted January 28, 2003 Here is an example: <HTML> <HEAD> </HEAD> <BODY> <!-- #include virtual="/Include/CfxIE.inc" --> <!-- #include virtual="/Include/CfxIECmds.inc" --> <% Set chart = Server.CreateObject("ChartFX.WebServer") %> <br> <%=chart.GetHtmltag(800,600,"ActiveX")%> <SCRIPT LANGUAGE="JavaScript" FOR="Chart1" EVENT="LButtonDblClk(x, y, nSerie, nPoint, nRes)"> <!-- Chart1.DataPath = "http://frankp/data.txt" Chart1.ReturnValue = 1 --> </SCRIPT> </BODY> </HTML> The new data is loaded upon Double-Click, this can be done from another button, etc. The important thing is that it is dne in the CLIENT. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 28, 2003 Author Report Share Posted January 28, 2003 Ok. Now, when clicking, I receive the following message: "No Data Available" I'm using this text file: [ChartFXtxt] Sales Projected Jan 10 20 Feb 15 80 March 2 20 Apr 4 100 May 7 35 But the path it's correct... Paolo Capitani Link to comment Share on other sites More sharing options...
Software FX Posted January 28, 2003 Report Share Posted January 28, 2003 This file is incorrect, is missing a header column (month). -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 28, 2003 Author Report Share Posted January 28, 2003 I have used your file example.. :-) With this file: [ChartFXtxt] Month Sales Projected Jan 10 20 Feb 15 80 March 2 20 Apr 4 100 May 7 35 the same error... maybe I must use the TAB instead of the SPACE for separator? Thank you, Paolo "SoftwareFX Support" <support@softwarefx.com> wrote in message news:5$bZ42wxCHA.1384@webserver1.softwarefx.com... > This file is incorrect, is missing a header column (month). > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted January 29, 2003 Report Share Posted January 29, 2003 Yes, the separator is a TAB not a space. -- FP Software FX, Inc. ImgExport.zip Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 30, 2003 Author Report Share Posted January 30, 2003 Works fine! Thank you, Paolo Capitani "SoftwareFX Support" <support@softwarefx.com> wrote in message news:OGCsS57xCHA.1384@webserver1.softwarefx.com... > Yes, the separator is a TAB not a space. > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.