
Design comparison
Solution retrospective
This challenge was very amazing since u had alot to learn through it . Thoughi did not ise grids as intened to , i managed to use flexboc/ Anyone with notion on how to import locally a json folder into javascript code . Any feedback would be highly appreciated .
Please log in to post a comment
Log in with GitHubCommunity feedback
- @dgjenni2
To import the JSON within a JQuery file, you can use this method that I've used in another project:
// Use Jquery getJSON method, which takes two parameters... path to JSON file and a callback function to process the JSON once it is loaded $.getJSON("./change/this/to/path/to/file", function (json) { callBackFunction(json) })
function callBackFunction(jsonData) { // Do something with the data here }
https://stackoverflow.com/questions/7346563/loading-local-json-file (Also has some other potential options you might want to try)
Marked as helpful
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord