>>>Hi,
>>>
>>>I am watching a course (in Pluralsight) on HTML5 Web Storage. A sample/test code is as follows:
>>>
>>>var storage = window.localStorage
>>>
>>>
>>>The word "window" is a little confusing. What if I am running the page in iOs safari? Will it still work?
>>
>>It refers to the HTML5 Window so is available on any browser running HTML5. See :
https://developer.mozilla.org/en-US/docs/Web/API/Window>>Or more specifically :
https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage>>In fact, bookmark the developer.mozilla.org website - it's the best reference to HTML5
>>
>>Are you going to be writing the server and client code?
>
>First, thank you for the links. To your question about "server and client code", probably client. Let me explain. I have been working on this ASP.NET Web Forms application for some time and it all was supposed to work via WiFi. Now, my first beta tester says that they probably won't have a good/strong WiFi. So they prefer that I change the program to work in a disconnected mode. So I am going to save some files (initially some XML files) to the local storage on the tablet, when user has a good WiFi. Then as they process the work orders (defines in those XML files) I will store the results in local storage again (under a different variable). And when they are back to the WiFi available area they will upload the data from the local storage to the database. When I mean "they", my app will have to. The application will work on iPad Minis (this is what the customer purchased).
OK. I did the same type of thing on an app a few months ago. Couple of tips:
You can add two eventlisteners to monitor online/offline status (works on Ipad Mini with Safari). I use that to disable/enable (and color code) a button which triggers sending/receiving data from the server. See:
https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOnLine/onLineIf the data structure permits I'd seriously consider using JSon objects rather than XML since it is far more compact and is probably what you will need for data on the client side. It's just as easy to have Web API return JSon as XML.....
HTH,
Viv