I'm in the process of developing an iPad web app that needs to be in Fullscreen mode and Airplane mode at the same time.
We've been using the Cache Manifest to store all the files we need but the tricky part is that right now we're passing information in the URL ie. file.html?account=234
and when you try to link to a file like this during Airplane mode an error is returned saying that the iPad can't access the domain... despite the fact that file.html
is cached in the Cache Manifest.
It seems like the iPad thinks that file.html
and file.html?account=234
are two completely different files/URLs, so then it sees that it's not in the Cache Manifest and tries to connect to the server.
The idea behind all of this is that we display a list of accounts in index.html
from a JSON file and then in file.html
(we get the account
param with the jQuery $.url().param()
plug-in) and build the account info from the JSON file.
It's like a lo-fi way of using the JSON file as a Database, and it works fine in Fullscreen Mode.. unless you're in Airplane Mode. And that's a problem because this prototype needs to work without internet connections.
It seems like my approach is completely wrong, but I'm sort of at a loss now. Is there a way to use AJAX to load the file.html
into the index.html
and at the same time pass along account=234
?