Broetchen1234 / iui

Automatically exported from code.google.com/p/iui
MIT License
0 stars 0 forks source link

Ajax calls failed when iUI was using offline cache (Cache manifest) #189

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create CACHE MANIFEST to include all iUI stuff
2. Config text/cache-manifest in Apache
3. Add manifest="abc.manifest" in HTML tag
4. Bookmark the address to homescreen
5. Launch the WebApp from homescreen
6. None of Ajax clicks works
7. Check the server log, no requests came to server when clicking links
8. Check XMLHTTP status, it seems to be disppeared after readystate=1
9. Remove manifest="abc.manifest" from HTML tag, everything works fine

I am not going to provide a real offline app, I am just thinking of using 
cache to quickly launch app instead of downloading all iUI stuff every 
time users launch the app from homescreen.

I visited few websites and offline demos, just wondering how they work. 
like this one:
http://code.msgilligan.com/2009/09/iui-sample-webapp-using-html-5-
offline.html

From my knowledge, Ajax seems to prevent the cross-doamin access 
naturally, when it starts from cache, is it treated as accessing from 
localhost to remote address?

Here is my demo:
http://i.sh2sg.com/v3.html

Cache manifest
http://i.sh2sg.com/movie.manifest

I appreciate any suggestion.

Thanks.

Original issue reported on code.google.com by kelvin...@gmail.com on 31 Oct 2009 at 4:23

GoogleCodeExporter commented 9 years ago
dupe post, please delete it

Original comment by kelvin...@gmail.com on 31 Oct 2009 at 8:52

GoogleCodeExporter commented 9 years ago

Original comment by melcher....@gmail.com on 1 Nov 2009 at 8:17