How can use jquery files from SD (without internet connection)

Hello,

I would like to ask your help please.

I have use the webduino library with sd card.

The index.htm file it is on sd card and runs ok.

Now my problem, i want to use the jquery files

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>

on index.htm like above run fine, but because i want to use it without internet how can i modify to run the above from the sd card ?

I have copy the files on sd card and i try this

<link rel="stylesheet" href="jquery.mobile-1.4.5.min.css" />
<script src="jquery-1.11.1.min.js"></script>
<script src="jquery.mobile-1.4.5.min.js"></script>

but no success :frowning:

I have copy the files on sd card and i try this

Have you ported the javascript engine to the Arduino? If so, that's an amazing feat.

All the .js activity is handled by the receiving browser, all you need to do is serve the file from your SD card. The below post has an example on how to serve up the files to a browser from the SD card. There is a zipped file attached to the post hat has all the files used in the example.

http://forum.arduino.cc/index.php?topic=279849.msg1970392#msg1970392

I suppose you mean there is network connection, but no internet access to get the js from jquery.com. If you save a copy to SD card, you need to use short 8.3 name, then you can edit the links. I can tell you it will load a lot slower if file is served from sd card, but that may be fine for your needs. What I did to make it faster is to zip up the files and serve it to the browser as gzipped file with Content-Encoding header set to gzip.