Error 404: Can not find JSON file in javascript getJSON()
-
Dear All,
I am working with javascript, where I need to reach json file.
I can not find the reason, why jQuery.getJSON() function can not find the json file.
js script file is used thru the shortcode in my webpage. JS file and JSON file are in the same folder. When I am trying to reach json file, it throws me an error number 404. Code:jQuery(document).ready(function(){ jQuery.getJSON('questions.json', function(json) { s.setup(json); }); });
I am working with child theme. These files (json and js) now are in the sub-folder of the child theme.
Where should I locate json and/or javascript files json file could be found?Thank you
Vilnia
- The topic ‘Error 404: Can not find JSON file in javascript getJSON()’ is closed to new replies.