Tag: data

Recent Post

Get Size of a FormData Object Payload

To do so, you need to make your calculations conditional upon data type.

Input Form Field Suggestions with HTML and JavaScript

Input suggestions can be coded with HTML only and options populated with JavaScript.

Upload Multiple Files using the Fetch API

Learn how for both an input the 'multiple' attribute and with multiple input elements.

Get the size of a file in JavaScript

First get the data in blob or blob-like format and then access its size property.

Download Progress with JavaScript’s Fetch Function

Create a download indicator by reading the body of the response.

Set an Expiration Date and Time for a localStorage Item

There is no native expiration option but it can be implemented using timestamps.

Store and Retrieve a Function in localStorage

Pass a function through localStorage using the Function constructor object.

JSON file to CSV download with vanilla JavaScript

Allow your users to download any fetchable JSON file in CSV format.

Read a File into JavaScript using FileReader

After reading a file, you can display it, edit it, post it to a server and download.

Map Live User Location using Leaflet.js

Get user coordinates using the HTML5 Geolocation API and map using Leaflet.js.