Dormilich, that sounds like a really good idea - could you please give me an example of how to code it?
Thanks
User Profile
Collapse
-
I'm not sure I quite follow. Why is the PHP required - you're calling a PHP file, which is giving the result, why not just call the text file with the version number directly?
I've been having a go, and come up with the following. So far, I know the versions are correctly in the variables when it comes to the comparison, but for some reason the comparison always seems to return not-equal, even when NewVer and Version both contain...Leave a comment:
-
JS/Ajax to check a file for a version number, and compare to known value.
I have a set of calculators written in JS on a page:
http://www.slymail.org/vinocalc.html
The page is designed to be downloaded and used offline, or simply saved as a file for speed of access and reliability (not always on internet connections).
Anyway, I would like to store a file on the server, which contains the current version number (such as 2.0). That's all the file will contain. Then when the page is...
No activity results to display
Show More
Leave a comment: