mrsunshine
19 Jun 2010, 6:11 AM
How make a sencha touch app offline usable with html5 cache manifest?
This questions is SOLVED! See following How To for a complete answer!
How to make a sencha touch app offline usable with the html5 cache manifest! (http://www.sencha.com/forum/showthread.php?102054-How-make-a-sencha-touch-app-offline-usable-with-html5-cache-manifest&p=478955#post478955)
i looked at the solitaire example and extended my "remember the card" (http://nils-dehl.de/m) app to use a cache manifest.
i added a manifest, but if i save a shortcut to my iPad homescreen and switch the iPad to fly mode and open my app, it still tryes to access the server.
Thats my index.html
<!doctype html>
<html manifest="rememberthecard.manifest">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Remember the card</title>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="stylesheet" href="sencha-touch-beta-0.90/resources/css/ext-touch.css" type="text/css">
<link rel="stylesheet" href="css/memory.css" type="text/css">
<script type="text/javascript" src="sencha-touch-beta-0.90/ext-touch-debug.js"></script>
<script type="text/javascript" src="js/memory.all.js"></script>
</head>
<body>
</body>
</html>
and my rememberthecard.manifest file:
CACHE MANIFEST
#rev5
index.html
sencha-touch-beta-0.90/resources/css/ext-touch.css
css/memory.css
sencha-touch-beta-0.90/ext-touch-debug.js
js/memory.all.js
images/card-01.jpg
images/card-02.jpg
images/card-03.jpg
images/card-04.jpg
images/card-05.jpg
images/card-06.jpg
images/card-07.jpg
images/card-08.jpg
images/cover-leaf.jpg
tablet_startup.png
phone_startup.png
I read the: http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html
But i did not get it work.
Did i miss something? Every hint is welcome.
Nils
This questions is SOLVED! See following How To for a complete answer!
How to make a sencha touch app offline usable with the html5 cache manifest! (http://www.sencha.com/forum/showthread.php?102054-How-make-a-sencha-touch-app-offline-usable-with-html5-cache-manifest&p=478955#post478955)
i looked at the solitaire example and extended my "remember the card" (http://nils-dehl.de/m) app to use a cache manifest.
i added a manifest, but if i save a shortcut to my iPad homescreen and switch the iPad to fly mode and open my app, it still tryes to access the server.
Thats my index.html
<!doctype html>
<html manifest="rememberthecard.manifest">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Remember the card</title>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="stylesheet" href="sencha-touch-beta-0.90/resources/css/ext-touch.css" type="text/css">
<link rel="stylesheet" href="css/memory.css" type="text/css">
<script type="text/javascript" src="sencha-touch-beta-0.90/ext-touch-debug.js"></script>
<script type="text/javascript" src="js/memory.all.js"></script>
</head>
<body>
</body>
</html>
and my rememberthecard.manifest file:
CACHE MANIFEST
#rev5
index.html
sencha-touch-beta-0.90/resources/css/ext-touch.css
css/memory.css
sencha-touch-beta-0.90/ext-touch-debug.js
js/memory.all.js
images/card-01.jpg
images/card-02.jpg
images/card-03.jpg
images/card-04.jpg
images/card-05.jpg
images/card-06.jpg
images/card-07.jpg
images/card-08.jpg
images/cover-leaf.jpg
tablet_startup.png
phone_startup.png
I read the: http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html
But i did not get it work.
Did i miss something? Every hint is welcome.
Nils