Posts by Abner Rodrigues • 21 points
2 posts
-
0
votes1
answer173
viewsA: How to include JSON file inside a . JS
I decided, if anyone needs it, follow the code: function readTextFile(file, callback) { var rawFile = new XMLHttpRequest(); rawFile.overrideMimeType("application/json"); rawFile.open("GET", file,…
-
2
votes1
answer173
viewsQ: How to include JSON file inside a . JS
I already searched here on the forum, I got ready examples on other sites, but no one helped me. As it says in the title, I’m not managing to make this link from a file .json into the archive .js.…