i am writing a function to load highcharts data from a .csv file. but i am having some problem in providing the file path to the jquery’s .get method.
Here is my method
$.get('data.csv', function(data)) {.......}
my file ‘data.csv’ is placed in a path: “myproject/public/data.csv” and my $.get function is written in a ‘index.js’ file which is located at path:
myproject/public/media/js/modules/testapp/index/index.js
please help me in providing the correct path to the data.csv file. my application is in zend.
Thanks.
Have the HTML document specify the base URL for you call.
Then use it in your file myproject/public/media/js/modules/testapp/index/index.js