K
K
KindOfHeaven2018-03-18 21:11:21
JavaScript
KindOfHeaven, 2018-03-18 21:11:21

What is the problem with loading a json file from the server (.get jquery)?

Hello!
I'm trying to run a currency chart .
Here it is
. It works like this: For each timeframe and each currency, there is a json file with a history (A chart is built based on these files)
These files are changed 5 times per second by a php script (The script is called by a program on the server, stupidly request

pol.vefx.ru/data.php

And also 5 times per second the chart is updated on the client (Javascript) - a new history is loaded and the chart is updated based on it ($.get() loading)
The problem is that periodically some of the charts stop, this is due to the fact that the file json with the history for this chart, the client constantly loads the same one (Although it changes on the server, the php script works)
After a while, everything comes back to normal
Server on windows

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav, 2018-03-18
@ddddasass

get json it is necessary to use the
second data in php is displayed differently each time, the reason is unknown

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question