offline

Why might cache-manifest fail to get mobile Safari to cache site while working as expected on desktop?

别等时光非礼了梦想. 提交于 2019-12-05 10:37:54
I'm playing around with a simple web app locally, and can't quite figure out why it is not caching correctly on the iPhone. I am serving a .manifest file with the correct MIME-type, and the site works perfectly fine with my local server turned on or off on desktop Safari, Chrome and Firefox. It is only mobile Safari that is failing to cache the site. Any ideas why this might be? It seems to be an iOS bug. I found out that mobile safari will always run into an application caching error if you have at least one web view opened and the you clear the browser cache. I think that clearing the

Getting content of a local file without uploading [duplicate]

安稳与你 提交于 2019-12-05 09:22:43
This question already has answers here : How to open a local disk file with JavaScript? (7 answers) Closed 12 months ago . I'm writing an offline webapp that allows user to select local file, modify it and than saves a copy also locally. Is it possible without any server (I can upload a file and return base64 of it, but it's not much of a offline)? App needs to work only on Google Chrome, so maybe I should look here? The HTML5 File API might prove usefull http://www.html5rocks.com/en/tutorials/file/dndfiles/ GAgnew input = document.getElementById(inputId); var reader = new FileReader(); reader

Large XML Files and Pagination, is it possible?

家住魔仙堡 提交于 2019-12-05 07:42:53
The problem When opening very large XML files locally, on your machine, it's almost a certainty that it will take an age for that file to open - it can often mean your computer locks down because it thinks it's not responding. This is an issue if you serve users XML backups of rather complex databases or systems they use - the likehood of them being able to open large backups, let alone use them, is slim. Is pagination possible? I use XSLT to present readable backups to users. In this same way, would it be possible to pull only a page at a time of data, to prevent the entire file from being

Cache manifest offline app not refreshing javascript files in Chrome

感情迁移 提交于 2019-12-05 02:15:58
I am working on an offline web app using a cache manifest file. I am having trouble refreshing my javascript files. If I change a .js file (which is listed in the manifest file) and I then change the manifest file version no. and save it, then the changed .js file does not get reloaded on the client. What do I have to do to get .js files to refresh? Thanks amernov That's because the webserver tells the browser cache static files for a few hours. So the browser doesn't know the manifest file is changed. You can clear all the application data 'or' config the web server the manifest is not

Navigate through a pre-known map offline using Phonegap

房东的猫 提交于 2019-12-05 00:51:54
问题 Hello and thank you in advance, I would like to ask if there is a way to compile pre-known google map tiles and load them up in a Phonegap application. To be more specific, I am developing an application that will concern geolocation, path navigation etc, within a specific region. Due to the nature of use of the application (it might be used in the wildlife for example) the phone of the user may not get signal in order to have an internet connection, hence I want the interactive map facility

Creating a self contained, offline HTML5 app and the best method for embedding its resources

≯℡__Kan透↙ 提交于 2019-12-05 00:33:14
问题 I am trying to create a single file HTML5 document that can be emailed to people that would contain all markup, js, css and images needed to run it. I am aware of articles describing the offline process such as http://diveintohtml5.info/offline.html, however would like to know the best method to embed its resources such as large images and js files. Would I be using base64 encoding for these or is there a better approach? App will be running on fairly new browsers. 回答1: Yes, base64 encode the

HTML5 offline cache google font api

♀尐吖头ヾ 提交于 2019-12-04 22:29:34
问题 I'm trying to create an offline HTML5 test application, and am playing with the new google fonts api at the same time. Does anyone have any ideas how to cache the remote fonts? Simply putting the api call in the cache manifest doesn't work, I assume this is because the api actually loads other files (ttf, eot, etc). Any ideas if using the font api offline would be possible? For reference this is the call I am making: http://fonts.googleapis.com/css?family=IM+Fell+English|Molengo|Reenie+Beanie

How to enable offline support when using HTML5 history api

不问归期 提交于 2019-12-04 22:02:23
What are the best practices (and how to go about doing it) to support offline mode when using html5 history api for url rewrites? For example, (hypothetically) I have a PWA SPA application at https://abc.xyz which has internationalization built in. So when I visit this link, the Vue router (which ideally could be any framework - vue, react, angular etc.) redirect me to https://abc.xyz /en . This works perfectly when I am online (ofcourse, the webserver is also handling this redirect so that app works even if you directly visit the said link). However, its a different story when I am offline.

How to check device is Online or Offline Phonegap

蹲街弑〆低调 提交于 2019-12-04 20:45:25
问题 What is the easiest way to check whether the device(smartphone) is online or offline. I'm working with phonegap, jquery mobile. I found this one. document.addEventListener("online", yourCallbackFunction, false); What I want to do is to check the Internet connection and decide about to get the data from the internet or from the device local database. if(deviceoffline) getDataFromLokalDatabase(); else getDataFromInternet(); 回答1: You can use navigator.onLine: var isOffline = 'onLine' in

Content disappears for fraction of a second on offline web app load

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 20:43:20
问题 I've observed this on iOS 4.3 to 5.0. When you create a even a simple offline web app, meaning one HTML file + few assets such as CSS and JS (all present in the cache manifest), it works offline (I tested in Airplane Mode) – BUT , when you add such an app to your home screen and open it in fullscreen mode, it first displays initial content, then everything disappears (page becomes white) for half a second or more, then content reappears again. You can see this by adding Glyphboard, a well