Category: JavaScript

Get current Geolocation using JavaScript - Clue Mediator

Get current Geolocation using JavaScript

Today we’ll show you how to get current geolocation using JavaScript. In this small article, we will use JavaScript’s Geolocation API to get the latitude and longitude of the visitor’s...

Calculate age in years using JavaScript - Clue Mediator

Calculate age in years using JavaScript

In this short article, we will show you how to calculate age in years using JavaScript. We’ll learn how to calculate the user’s age from their date of birth and...

Sort an array by Date in JavaScript - Clue Mediator

Sort an array by Date in JavaScript

In this article, we’ll show you how to sort an array by date in JavaScript. When you are working with an array of objects that contains a date field and...

Convert XML to JSON using JavaScript - Clue Mediator

Convert XML to JSON using JavaScript

Today we’ll show you how to convert XML to JSON using JavaScript. In this article, we will show you how to convert XML strings to JSON using the xml2json script....

Bootstrap Colorpicker Example using JQuery - Clue Mediator

Bootstrap Colorpicker Example using JQuery

Today we’ll show you how to implement a bootstrap colorpicker example using JQuery. In this article, we will give you the two different examples to create color picker components using...

Time from now using Moment JS - Clue Mediator

Time from now using Moment JS

Manymore developers are struggling to display time from now such as days ago, weeks ago, in N months, months/years ago, etc in JavaScript therefore today we’ll come with a new...