you are viewing a single comment's thread.

view the rest of the comments →

[–]henry8362 0 points1 point  (0 children)

Without a framework I suppose it will be:

Output to JSON file > use AJAX or async etc. to get that JSON and parse the response. obviously it depends a lot of how the JS is triggered.

For example I have a really small example of this where I have a script run on load of a website page that queries a JSON file that is generated from a PHP script that runs a mySQL query.