javascript - Accessing local file in HTML -


Therefore, I currently have a JavaScript code that imports a CSV file and uses a javascript to outline a multi-dimensional array Does. My problem is that when the code tries to open the CSV file, then this error is found with

  can not load the XMLHttpRequest file: //XXXXXX_List.csv. An invalid response was received, the origin of the 'empty' is not allowed for entry  

Is there any way to bypass it? I researched and found that I can disable it by adding an additional command line option, but in doing so I do not need that others can open the page without adding additional command line options, the file is located in that folder, The page on which the import script is.

I have tried:

  file: ///// servername / list csv file: //servername/List.csv./List.csv List.csv File: /// \\ servername \ List.csv  

But none of these works. Can anyone help me with this?

My code is now like this:

  var listurl = "file: /////servername/List.csv";  


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -