This a quick example of how you can format HTML input fields with JavaScript to allow Credit Card numbers or let’s say Phone numbers in a particular format. Most often or not you might have seen this when you are trying to do a payment checkout. This article will cover the technique to format an […]
Author: Christian Price
Setting Expiry in Redis
This is a short article that features a video on Setting Expiry in Redis. So, we will learn how you can set an expiry time to your Redis keys. What is Redis? Redis is an open-source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. It is highly reliable, scalable, […]
Share like native mobile apps with Web Share
In this article we will check out how to share like native apps with the Web Share API. Web Share API has been around for some time and can add the great ability to your Mobile Web/PWA applications. Using the Web Share API you can provide your users with native app like sharing dialog as […]
How to cancel a fetch request?
Ever wondered how to cancel a fetch request in your web application. There’s good news, we can finally abort HTTP calls made using fetch from our applications. In this article, I will cover how to abort or cancel an HTTP call made using fetch(). I will also walk you through a sample example with details. […]
Useful Redis Commands for beginners
Redis is an open-source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. It is highly reliable, scalable, and has high availability. In this article, we look at some useful Redis commands for beginners. Redis can be used to cache content . For eg. — database queries that are supposed to be […]
Important MIME types for web developers
Mime types define the format of a document that you will typically encounter in web development. In this article let’s look at a few important mime types for web developers. What does MIME stands for? MIME is the short format of Multipurpose Internet Mail Extension. It is an RFC standard that defines the format and nature of […]
Timeouts in Fetch calls using Javascript Promises
Let’s see a quick example of how to have timeouts in fetch calls using JavaScript promises. By default the fetch() API does not have built-in support for timeouts. So we will build our custom solution in this example. Why do you need timeout? Well, it is a good idea to have a timeout in your […]