Hi,
I'm trying to connect a .csv file from my computer (local), by index.html.
Part of my code :
var pivot = new Flexmonster({
container: "pivotContainer",
toolbar: true,
report: {
dataSource: {
filename: "file:///C:/Users/amedjber/Desktop/FlexMonster%20Trial/Pivot%20Table%20for%20CSV/client/123.csv"
},
The error I get when I try to load index.html :
Unable to open file file:///C:/Users/amedjber/Desktop/FlexMonster%20Trial/Pivot%20Table%20for%20CSV/client/123.csv?424017529.
It seems that this file doesn't exist or 'Access-Control-Allow-Origin' header is absent in the resource requested.
Thank you, Medjber
Hello, Medjber,
Thank you for writing to us.
Browser security policy is causing this error. It doesn’t allow our component accessing the local file. We suggest putting both index.html
and .csv
files on the web server like http://localhost
. Then set the relative path to .csv
in filename
property.
Does the suggested approach work for you?
Regards,
Tanya
Hi Tanya, thanks for your answear,
Does it mean that I have to Install Wamp ?
Or there is another way to do it without this software ?
TY, Medjber
Hello, Medjber,
Thanks for your quick reply.
Yes, Wamp or any other similar software needs to be installed.
Please let me know if you have any other questions.
Regards,
Tanya
Ok, i'll install WAMP.
Thank you again,
MEDJBER