fustyles / Arduino

389 stars 287 forks source link

Reading js file from SD card #20

Open SRS-Nick opened 1 year ago

SRS-Nick commented 1 year ago

I found your video on youTube, which lead me here..

"Load js files and image files from SD card offline" https://www.youtube.com/watch?v=SCXuy2odk7Q

I am working on a project using an SQLite database located on an SD Card. I need to be able access the SQLite database online or offline, "no internet".

The following JavaScript works loading the "jquery.min.js" from a URL

I downloaded the "jquery.min.js" file and saved it to the SD card and I am trying to use your technique, see below

However, I must be doing something wrong, I cannot seem to get this working?

Note: the project code works GREAT, as long as I have internet access, as soon as I disconnect the internet, I cannot access the SQLite database,

Can anyone help me understand how to use this method?