September 21, 201313 yr Hi,I have been working with HTML and CSS for a long time now but I am a newbie in HTML5 and mobile devices.I want to know the following before starting a project:1. Is it possible to create an HTML5 application that:a. detects the type mobile device and loads specific layout/functionality according to that?b. stores data (maybe through xml or in a database? what language can I use for that? php?)c. works offline as well - but where does it store the data during this? How does it sync when it gets connectedd. provides drag and drop features on a touch device2. If it is possible, what is the level of difficulty?3. Are there any specific mobile platforms you would recommend I can work with (not heavy programming)4. Are there any specific resources, tutorials, APIs that can help me towards this direction?ThanksKadjia
September 21, 201313 yr 1a. Yes, using CSS3 media-queries. It doesn't necessarily detect specific device, but rather the screen size and pixel density ratio. 1b. Yes, you can use Web storage - Javascript 1c. Use the Web storage to store all required data (download all data on first launch). You can then present this data offline 1d. Yes, with some Javascript (jQuery might be useful) 2. Fairly complex with the database stuff – I did some web SQL (now moved onto web storage) database work about 3 years ago and support was a bit sketchy then. 3. Mobile platforms? jQuery mobile? Twitter Bootstrap? Not quite sure what you mean here. 4. See 3, and use Google - blog articles and documentation pages hold the answers to most development questions these days. Edited September 27, 201313 yr by andy9l
September 26, 201313 yr 1c. Use the Web SQL database to store all required data (download all data on first launch). You can then present this data offline Mhh didn't knew this was possible it's caching the whole database on the mobile device? Or how should i see this?
September 26, 201313 yr The database stays on the server and you pass requests when the page loads to retrieve data to the page etc This is possible it just depends how long you have and your technical expertise
September 27, 201313 yr Mhh didn't knew this was possible it's caching the whole database on the mobile device? Or how should i see this? Yes, the browser handles the storage. You can use WebSQL, web storage, or IndexedDB. Each have varying levels of browser support: http://www.html5rocks.com/en/features/storage The database stays on the server and you pass requests when the page loads to retrieve data to the page etc This is possible it just depends how long you have and your technical expertise No, it's stored locally within the browser 'cache' or 'databases'. More info here. Edited September 27, 201313 yr by andy9l Corrections. It's early :(
Create an account or sign in to comment