Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
So I have a server that Runs 24/7 and I have a .JSON file on it I have defined everything but what I need to know is how can my .html file find that one .JSON file read it, compare the current json to the new json, and display it.

Here is what I am trying to do.
I have 1 server That hosts a .JSON file then I have a computer that has a .JSON file now when someone opens the html I made I want it to display the version number of the JSON file on the computer and the one on the server.
So How do I do it?!?!


And For Help Here Are my .JSON files.

SERVER SIDE:
manifest.json:
{
  "manifest_version": 2,
  "name": "-",
  "version": "1.2.2"
}



COMPUTER SIDE:
manifest.json:
{
  "manifest_version": 2,
  "name": "-",
  "version": "1.2.0"
}




And here is what I want to happen in the html:

Your Version: 1.2.0
Actual/Current Version: 1.2.2


So How do I do this?!
Posted
Updated 13-Feb-14 14:41pm
v4

1 solution

 
Share this answer
 
Comments
Braydon 14-Feb-14 1:29am    
Thanks But... I want to display the contents to the person not on the server/website
[no name] 14-Feb-14 1:37am    
Can't you extrapolate the solution?
Braydon 14-Feb-14 1:47am    
I can't find any other way too.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900