I am using **Jquery-ui** majorly for displaying progressbar and also using the basic jquery api as the scripting language in my html page.
I have linked all the jquery and its UI api to google API link. So, this requires the user to be always connected to internet.
Also, the users are not expected to download these libraries in their machines, so that if stored at some fixed location, I can point to those libraries.
Is there any way out , to use the html for offline viewing i.e when the user is not at all connected to internet ?
One option I am having开发者_JAVA技巧 is to copy the source of jquery and JQuery-UI into my HTML report :P.But I am certainly looking for other options.
As far as I know, those libraries will be cached by the visitor's browsers and will be available, provided the visitor does not clear his/her cache.
EDIT
Reading in the comments that
I am generating an HTML based report on some statistics which is calculated by a perl script. This script feeds data into the html and what I get is a tabular view of data with progressbar. So I want the users to be able to view this report even if there is no connection.
I say your only option is to place the scripts (source) directly in your HTML page.
Download jQuery and the UI bundle to your local server, serve it from there. I assume this is some internal network, since if the users didn't have internet access they wouldn't be able to view your site.
You can simply include the content of your js files (jquery, jquery ui) into <script></script>
tags.
Here you can find any offline documantion. (www.helpmesh.net)
For jQuery & jQuery UI: http://www.helpmesh.net/s/jQuery/
Not the same format as the online jquery doc, but at first glance, this looks useful: http://www.jqapi.com/
精彩评论