Performing batch transactions in WebSQL on iOS & Android
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.
Storing and retrieving objects with LocalStorage
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?
Hiding default spinner buttons on HTML number input fields
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.
Browser data storage options for the front-end developer
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.