Jump to content
Software FX Community

reload data without reload page


User (Legacy)

Recommended Posts

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

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

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

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...