123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|472|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Web Development -> Offline Web App!!!!! ARGH!!!!!

Sun, 05 May 2013, 11:48
spinal
This is really starting to irritate me.

-Background-
I created a basic level editor in Monkey, using the html5 build so that I can make some levels on any device, so I'm not restricted to sitting in the corner on my Mac.

-Problem-
The damn thing point blank refuses to load when the device (iPad) is offline.
I have the files on my localhost, it loads fine when MAMP is fired up and the localhost is accessible.

Steps I have taken
The following is the contents of my MonkeyGame.html


As you can see, I have the required stuff for iPad fullscreen and whatnot, but the main bit of course is the manifest="offline.manifest"

The contents of offline.manifest are as follows-


Which is every file required by the app.

I have also created a .htaccess file with the following

For safety I have placed this in both htdocs and in the folder containing my app.

My next step was to edit Applications/MAMP/conf.apache/httpd.conf to make sure that the following was set, to that it would actually use the .htaccess file


After a couple of days of nothing working, I now ask you guys.

Why on earth is my offline html app not caching on my iPad?

Thank you in advance

-=-=-
Check out my excellent homepage!
Mon, 06 May 2013, 03:51
spinal
Ok, I seem to have it working, not sure exactly what the problem was. Changing my main page filename to index.html might have been what fixed it, didn't do much else. deleted the .htaccess file, changed offline.manifest to chache.manifest. That was it, one of those things fixed it.

-=-=-
Check out my excellent homepage!