Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

HTML 5 : is it possible?

Featured Replies

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 connected
d. provides drag and drop features on a touch device

2. 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?

Thanks
Kadjia

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 by andy9l

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 :o it's caching the whole database on the mobile device? Or how should i see this?

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

Mhh didn't knew this was possible :o 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 by andy9l
Corrections. It's early :(

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.