Marcell Posted July 18, 2021 Share Posted July 18, 2021 Hello. I have made a little PHP script, which is set as a cron job, that updates this pricing into a json file every 30 minutes. However, I am having trouble how could I pass this JSON data into an actual existing HTML page? I tried using jQuery and Javascript, but no luck so far. JSON file: https://pastebin.com/tfG494B8 Is there anyone who could give me a hint with an example? 0 Quote Link to comment Share on other sites More sharing options...
string Posted July 18, 2021 Share Posted July 18, 2021 You can parse the json with jQuery.each. Here is an example: https://codepen.io/deploymentcode/pen/QWvgypY 1 Quote Link to comment Share on other sites More sharing options...
Marcell Posted July 18, 2021 Author Share Posted July 18, 2021 You are a god, thanks so much 🙂 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.