Skip to content

Reading js file from SD card #20

Description

@SRS-Nick

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

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>

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

<script src="?getfile=/jquery.min.js"></script>

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions