I have an offline website containing Java Applet which draws a real-time chart from a url with a .dat file. The .dat file is updated every minute.
Java Applet didn't work. It was unable to import data from .dat file.
I tried to download the .dat file on my hard disk (I also altered the source code of html file to meet the new path of .dat file) and Java Applet then worked fine. It also was ok when I uploaded all files to a server. However, Java Applet again was unable to read the remote .dat file.
The result: the chart is static because .dat file doesn't update.
I am wondering if there is any way to resolve this, or to let the the .dat file(the one on my hard disk) automatically update every minute?!
Thanks,
Rami
Best regards,
Oleg Chernavin
MP Staff
Offline Java applet can import data from
"file.dat"
or ".../..../file.dat"
but it fails to import data from
"http://somewebsite.com/file.dat"
or "C:\dir\flie.dat"
Notice that the last one is also a file residing on the hard disk. So, I would imagine the problem is not in the way of communicatoin with a website, but rather in dealing with the path in which the file.dat resides.
Oleg.