I am currently facing an issue with a script that utilizes AJAX to retrieve JSON data.
$.ajax({
type: "GET",
url: url, /*url = index.html or data.json, many page use 1 script*/
success: getData
});
In addition, I have an HTML page containing the following:
<script id="data" type="application/json">
</script>
The script is not functioning properly with the index.html file, although it works with other JSON files.