Shineyrock web design & consultancy

Shineyrock

Searched for: "e" / 1399 results

How to Change the URL in JavaScript: Redirecting

…e, we’ll discuss how to change the URL in JavaScript by redirecting. We’ll go through a couple of different methods that you can use to perform JavaScript redirects. JavaScript is one of the core technologies of the web. The majority of websites use it, and all modern web browsers support…


Confirm Yes or No With JavaScript

…e, we’ll discuss how to display a confirm dialog box using JavaScript. The confirm dialog box allows you to perform actions based on the user input. JavaScript is one of the core technologies of the web. The majority of websites use it, and all modern web browsers support it without…


How to Enable or Disable a Button With JavaScript: jQuery vs Vanilla

…e, we’ll discuss how you can enable or disable a button with JavaScript. First, we’ll go through how it works in vanilla JavaScript and later on we’ll see how to do it with jQuery. JavaScript is one of the core technologies of the web. The majority of websites use it,…


How to Enable or Disable a Button With JavaScript: jQuery vs. Vanilla

…e, we’ll discuss how you can enable or disable a button with JavaScript. First, we’ll go through how it works in vanilla JavaScript, and later on we’ll see how to do it with jQuery. JavaScript is one of the core technologies of the web. The majority of websites use it,…


5 Real-Life Uses for the JavaScript reduce() Method

…er-box; } body {margin: 0;}*{box-sizing:border-box;}body{margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;} In this article, we'll take a look at some handy uses for the JavaScript array reduce method. I'll show you five practical uses, including finding the sum of an array. JavaScript How to Use Map, Filter, and Reduce in JavaScript Peleke Sengstacke What Is the…


Create a JavaScript AJAX Post Request: With and Without jQuery

…er-box; } body {margin: 0;}*{box-sizing:border-box;}body{margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;} In this article, we'll take a look at what AJAX is, why it is important, and how we can make an AJAX POST request with XHR, fetch(), and jQuery. What Is AJAX? AJAX stands for Asynchronous JavaScript and XML. AJAX is a technique in web…


Adding and Removing Elements From Arrays in JavaScript

…er-box; } body {margin: 0;}*{box-sizing:border-box;}body{margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;} In this article, we'll take a look at various ways to add and remove elements from an array in JavaScript. Here's a quick reference table for the different array methods that let you add or remove items. Click on the method name to jump to…


Read a CSV to Array in PHP

…er-box; } body {margin: 0;}*{box-sizing:border-box;}body{margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;} In this post, I'll show you how to use PHP's built-in functions to read and print the contents of a CSV file and convert it into an array. We'll use fopen() and fgetcsv() to read the contents of a CSV file, then we'll convert it…


Read a CSV to an Array in PHP

…er-box; } body {margin: 0;}*{box-sizing:border-box;}body{margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;} In this post, I'll show you how to use PHP's built-in functions to read and print the contents of a CSV file and convert it into an array. We'll use fopen() and fgetcsv() to read the contents of a CSV file, and then we'll convert…


The Best Way to Deep Copy an Object in JavaScript

…er-box; } body {margin: 0;}*{box-sizing:border-box;}body{margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;} In this article, you'll learn what shallow and deep copying are, and the best way to deep copy an object in JavaScript. Shallow Copying vs. Deep Copying In a reassignment operation involving primitive data types such as strings, numbers, and booleans, the original variable is…


Refine Search

Save This Search?

Saved Searches

You have not saved any searches yet.