I've write this to test browser's appcache feature. *Manifes Code*
CACHE MANIFEST images/image.jpg *HTML Code* <html manifest="demo.manifest"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Test</title> </head> <body> <img src="images/image.jpg" /> <script> var cache = window.applicationCache; cache.addEventListener('checking', function(){ alert('checking'); }, false); cache.addEventListener('error', function(){ alert('error'); }, false); cache.addEventListener('noupdate', function(){ alert('noupdate'); }, false); cache.addEventListener('downloading', function(){ alert('downloading'); }, false); cache.addEventListener('progress', function(){ alert('progress'); }, false); cache.addEventListener('updateready', function(){ alert('updateready'); }, false); cache.addEventListener('cached', function(){ alert('cached'); }, false); cache.addEventListener('obsolete', function(){ alert('obsolete'); }, false); </script> </body> </html> It works in Firefox 3+, but fails in Safari 4. In Firefox 3+, alert 'checking', 'downloading', 'progress', 'progress' in order; then in safari 4, it alert 'checking', 'downloading', 'progress', 'error'. Someone tell me why? -- Best Regards ChenCheng
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev