JavaScript

JavaScript Countdown Timer

JavaScript Countdown Timer

11.05.19
Often on sites that sell something you can find a countdown timer to a certain date. Such a script is usually required for landing pages and online stores. JS (() => { let finishDate = new Date(2017, 8, ...
Swipe events on touch devices

Swipe events on touch devices

10.05.19
Every day sensory devices are being introduced into our lives. These devices have specific events, unlike the desktop. One of these events is the swipe. Especially often have to deal with it when developing a mobile ve...
AJAX with native JavaScript

AJAX with native JavaScript

09.05.19
Consider a few examples of working with AJAX with native JavaScript. Functions are written with ECMAScript-2015 syntax The function for the GET method: let ajaxGet = (url, callback) => { let xhr = new XMLHttp...
Submitting Form Data with AJAX and jQuery

Submitting Form Data with AJAX and jQuery

02.05.19
We will send form data without reloading the page using jQuery. We will not consider processing the server part. Sample form: <form id="test_ajax_form" method="post" action="test_handler_form.php"> <inp...
Array max js

Array max js

01.05.19
A short note about finding the maximum value in a JavaScript array with numeric values. The Array object in JS does not have its own max method. But we can add it. Array.prototype.max = function () { return Math...
<<  1 [23 4  >>