Random thoughts & observations

From the mundane to the profound and everything in between here’s what’s rocking our world

Performing batch transactions in WebSQL on iOS & Android

Posted: April 7, 2016
Written by: Saints At Play
Category: HTML5

Despite being a deprecated standard and with certain developer resistance to using WebSQL we still find it to be a fantastic database solution for storing data cross-platform on both iOS & Android.

With a recent App we were developing we needed to be able to run batch transactions on inserting arrays of data into the SQLite database tables. Our solution for iOS worked perfectly but we didn't realise this would NOT work on Android (but fortunately found a workaround to accomplishing the same goal).

Let's have a look at the iOS solution and find out why.

More »

Storing and retrieving objects with LocalStorage

Posted: October 21, 2015
Written by: Saints At Play
Category: HTML5

The HTML5 Web Storage API provides developers with greater latitude for front-end storage compared to that of cookies, particularly with the localStorage property, making this an excellent choice for managing data within web and mobile applications.

Aside from browser support one issue with using this API is that data saved within localStorage can be of only 2 types: strings or integers.

So where does this leave us with other data types such as Objects and Arrays?

More »

Hiding default spinner buttons on HTML number input fields

Posted: April 18, 2015
Written by: Saints At Play
Category: HTML5

If you've been exploring HTML5 (and there's no good reason why you shouldn't be) you're probably familiar with the range of form enhancements that this recent upgrade to the language brings with it, in particular those concerning additional input field types.

If this is the case then you might also be familiar with certain browsers adding default controls to the number input field.

Thankfully these can also be removed - with only a smidgen of CSS.

More »

Browser data storage options for the front-end developer

Posted: June 28, 2014
Written by: Saints At Play
Keywords: html5,
Category: HTML5

With universal support in modern browsers for HTML5 related technologies such as Local Storage front-end developers now have more options than ever when it comes to client-side data storage. In this article we're going to take a look at what those options are and how they stack up.

More »

Latest Tweets