I currently have a Javascript application that consists of three files:
index.html
app.js
input.json
The input.json file gets referenced several times by the app.js file, in order to render content into divs in the index.html file.
I want to make it so that loading my index.html at http://example.com/myapp can take an externall hosted JSON as the source for app.js to read, like myexample.com/myapp?myhost.com/files/input.json.
Can anybody advise me on how to get this working?