'when I run local server and try to open a csv file by url(ajax), I got 404
$(document).ready(function() {
$.ajax({
type: "GET",
url: "uhslc.soest.hawaii.edu/data/csv/rqds/atlantic/daily/d740a.csv",
//url: "d741a.csv",
dataType: "text",
success: function(data) {processData(data);}
});
I want to make it work on my client side but when I run localhost, the address is localhost:0000/uhslc.soest.hawaii.edu/data/csv/rqds/atlantic/daily/d740a.csv and when I run locally, the address is as my/local/address/uhslc.soest.hawaii.edu/data/csv/rqds/atlantic/daily/d740a.csv so it does not work. Is there any way I can download a file from that address whenever I run code?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
