Found 10710 Articles for Web Development

How to display the file format of links using CSS?

Riya Kumari
Updated on 04-Apr-2023 10:40:38

285 Views

While browsing through a web page, you come across various documents which can be downloaded. Sometimes, you need to download a document but in different file format. However, you may have a problem in finding the document of your desired file format because there are various links each containing different file formats. It can be .docx, .png, .txt, .pdf etc.; Generally, file formats are not specified along with the links. So, we cannot know the type of file format just by looking the links. To solve the problem, you need to display the file format of the downloading links. In ... Read More

Voca: The Ultimate Javascript library for String Manipulation

Mukul Latiyan
Updated on 11-Oct-2022 14:24:39

360 Views

Voca is a JavaScript library that is used for manipulating strings. In this tutorial, we will take multiple examples to show how you can use the different functions available in Voca. Features of Voca Before we see all the examples, let's highlight some features that Voca brings to the table βˆ’ It provides a multitude of functions that can be used to manipulate, query, escape, format strings. It also provides a detailed and searchable documentation. It supports a wide range of environments like Node, js, Safari 7+, Chrome, Firefox etc. It doesn't require any dependencies How to Install ... Read More

Logging HTTP Requests and Errors using Morgan.js

Mukul Latiyan
Updated on 11-Oct-2022 14:18:24

2K+ Views

Morgan is a middleware that is available for Node.js which is used when we want to log HTTP requests. It is mainly used in Express projects. Morgan helps us simplify the logging work of HTTP requests that come and sent from an application in a single statement. In normal situations, developers often write all the logging code by hand and then end up logging what to store, how to save, and where everything is saved. It helps in gathering logs from your server and also prepares them for reading. It also has many predetermined defaults built-in to help the developers. ... Read More

TaffyDB – A JavaScript Database for Your Browser

Mukul Latiyan
Updated on 15-Jun-2023 14:48:55

252 Views

TaffyDB is a lightweight and powerful in-memory database that can be used in both browser and server-side applications. It is open-source and free to use. In this tutorial, we will take a couple of examples to show how you can use TaffyDB to store some data, execute some queries on the data, and also perform important operations on the data. Let's Start with a Simple Example Let's start with a very basic example in which we will create some data and then try to print that data on the browser. The first step for us is to have TaffyDB. For ... Read More

Working with HTML5 Canvas Elements using Easel.js

Mukul Latiyan
Updated on 15-Jun-2023 15:16:14

184 Views

The popularity of HTML5 Canvas elements is well known, as they allow web developers to create animations, full-fledged applications, interactive charts as well. But sadly, it is very hard for someone to understand canvas, especially if he/she has come from the Flash animation background. In this tutorial, we will explore the Easel.js library, which allows us to work with HTML5 Canvas elements. The syntax of Easel.js is similar to ActionScript and it even has features like Display List, Stage, Graphics which ultimately makes the use of canvas easier for the Flash developers. Now that we have a little idea about ... Read More

Validating a Form with Parsley.js

Mukul Latiyan
Updated on 15-Jun-2023 15:07:51

1K+ Views

In this tutorial, we will show how you can use Parsley.js, which is a JavaScript library that is mainly used to validate forms. Parsley helps in validating the forms in a very subtle and easy manner, and it is one of the widely used form validation libraries out there. Features of Parsley.js There are plenty of reasons why Parsley is a good choice for validating your JavaScript forms. Some of them are mentioned below. Intuitive DOM API βˆ’ The DOM API allows you to use simple English inside your HTML tags, and Parsley will do the rest. There's no ... Read More

Position Tooltips and Popovers using Popper.js

Mukul Latiyan
Updated on 15-Jun-2023 14:21:29

2K+ Views

Popper.js is a JavaScript library that is used when we want to build poppers and tooltips and manage them. It helps us in positioning tooltips and popovers in most modern web applications. In this tutorial, we will show how you can use Popper.js to position tooltips, but it should be noted that Popper is not just all about tooltips, yet is somewhat the foundation on which it is built. Let's Start with a Small Example Let's create a simple tooltip with a button to understand how we can use popper.js. The first step is to install popper.js on our machine. ... Read More

How to create your first chart with FusionCharts.js?

Mukul Latiyan
Updated on 15-Jun-2023 13:43:10

283 Views

FusionCharts is a JavaScript library that you can use when you want to create charts and maps and put them in your web application. In this tutorial, we will show how you can use FusionChart.js to create two different charts. Before we learn how to create charts, the first important thing is to know how we can install FusionCharts onto our local machines. Installing FusionCharts There are multiple ways with which we can install FusionCharts. Using CDN You can use the CDN link given below to directly gain access to the files of FusionCharts. Install from NPM You ... Read More

What are top JavaScript animation libraries?

Kalyan Mishra
Updated on 11-Oct-2022 08:57:37

994 Views

Have you ever thought of creating complex animations using CSS, well in JavaScript also there are some libraries which helps in creating animation and tasks that CSS also cannot perform. AS CSS animations are limited in functionality on the other hand JavaScript libraries are fast and reliable So, this article we will be learning about some of the best JavaScript animation libraries using which you can create animations in JavaScript. Let’ see some of the JavaScript animation libraries. Anime.js Anime.js is known as lightweight animation library which s use to animate HTML, JavaScript objects, CSS selectors and DOM attributes, arrays ... Read More

Difference between location.host and location.hostname in JavaScript

Imran Alam
Updated on 10-Oct-2022 11:57:01

3K+ Views

JavaScript's Location object provides access to the current URL's components. One can think of this object as a read-only window into the current location. There are two properties of the Location object that are often confused: host and hostname. Location.host The host property returns the hostname, port number, and protocol of the current URL. For example, if the current URL is "http://example.com:8080/path/to/page.html", the value of host would be "example.com:8080". Advantages of using location.host There are also a few advantages to using location.host over location.hostname. First, it is more specific. If you need the port number or protocol, you can be ... Read More

Advertisements