I am currently working on a help system based on the local file system. It is intended to ship with a product that is not used on computers that support the Internet, so it should be a stand-alone web page without any dependencies on the web server.
This creates several problems. Namely, the directory structure in which the files exist requires up and down navigation to access some of the .js files that are needed to display the help system. This usage should be implemented using the jQuery getScript function, but I ran into some problems using this on the local file system.
At first glance, it seemed that if my web page was submitted from the C: / dev / webpage / html / directory, and the files I needed were in C: / dev / webpage / js / (topic) /file.js , I could just build an absolute path (file: /// ...) and pass this to the getScript function.
However, after testing this, it does not seem that the getScript function will allow me to go to the level from the html directory (where the html file with the main code for the web page is located). Unfortunately, I cannot change the directory structure, nor can I change the structure / format of the .js file.
Is there an alternative for loading / executing javascript files that are in the file structure where I need to go "up and down"?
Thanks,
Change I looked at this question similar to mine, but the recommendation to change the data in JSON format was not an option in my case: Permission denied using Javascript / jQuery local file
source share