…Using these new features, we'll build a drop-down navigation menu with clean and semantic HTML code. Here's what we'll be building: Let's get started. 1. Getting Started We’ll need a copy of the latest release of jQuery, version 3.6.0 at the time of writing. Create a project folder somewhere on…
…using simple, expressive syntax. Development should be a creative experience that you enjoy, not something that is painful. Enjoy the fresh air! Laravel is a web application framework that describes itself as a “A Framework For Web Artisans”. According to its author, Taylor Otwell, Laravel strives to bring back the…
…using the JOIN query. There are several types of JOIN's, and we are going to learn about the the following: Cross Joins Natural Joins Inner Joins Left (Outer) Joins Right (Outer) Joins We will also learn about the ON clause and the USING clause. One to One Relationships Let's say…
…using either the MySQL or MySQLi extensions. As of PHP 5.1, there's a better way. PHP Data Objects (PDO) provide methods for prepared statements and working with objects that will make you far more productive! CRUD Generators and Frameworks Database code is repetitive, but very important to get right. That's…
…using Node.js, you must first understand the differences between Node.js and traditional server-side scripting environments like PHP, Python, or Ruby. Asynchronous Programming Chances are good that you are familiar with asynchronous programming; it is, after all, the "A" in AJAX. Every function in Node is asynchronous. Therefore, everything that would…
…using the information provided. To skip this step, attach the -y flag to the above command and Node.js will generate a package.json file with some default values. Then, create an empty JavaScript file and name it test.js. For the next step, you have to understand the Node.js module system. In…
…using the HTML5 FileReader API, which is almost universally supported. The FileReader class allows us to open and read parts of a file and pass the data as a Binary string to the server. Here is the JavaScript for the feature detection: document.getElementById('UploadButton').addEventListener('click', StartUpload); document.getElementById('FileBox').addEventListener('change', FileChosen); The code above additionally…
…using the strrchr() function in PHP, which returns part of the main string from the last occurrence of the specified character till its end. For example, the filename papaya.jpg will give us .jpg, and the filename i.like.papaya.jpg will also give us .jpg. After determining the extension, we use the appropriate…
…using document.querySelectorAll to simplify the finding of elements. If selector is not a string, we’ll check for a length property. If it exists, we’ll know we have a NodeList; otherwise, we have a single element and we’ll put that in an array. Then, we set this.elements to the elements and…
…using the respective folder in the code attachment. Both applications work identically. If you are not sure which to pick, Node.js might be a better choice since it is more commonly used now. Node.js & Express In order to run the example application, you need Node.js installed. Once you have,…