Found 10711 Articles for Web Development

Live Search Using Flask And jQuery

Siva Sai
Updated on 18-Jul-2023 18:26:15

782 Views

Introduction The combination of Flask and jQuery gives a reliable solution for developing dynamic web apps. While jQuery is a quick, compact, and feature-rich JavaScript library, Flask is a well-known, lightweight web framework for Python. For the purpose of creating a live search feature in a Flask application, we will combine the strengths of these two technologies in this tutorial. Prerequisites Ensure that you have the following installed on your local computer before beginning the tutorial's main sections: Python Flask − Install it via pip with pip install flask jQuery − Download it from the official website or use a CDN. Setup ... Read More

How to delay a loop in JavaScript using async/await with Promise?

Rohan Singh
Updated on 17-Jul-2023 19:39:42

2K+ Views

Some time−consuming tasks are executed without blocking the main thread in Asynchronous programming. In certain cases, developers may need to delay the execution of a loop to control the flow of their program or introduce delays between iterations. JavaScript provides several techniques for delaying execution, and in this article, we will explore how to delay a loop using the combination of async/await and Promises. Understanding async/await The async/await syntax was introduced in ECMAScript 2017 (ES8) and provides a concise and readable way to write asynchronous code. It is built on top of Promises and allows developers to write asynchronous code ... Read More

How to debug JavaScript File ?

Rohan Singh
Updated on 17-Jul-2023 19:28:42

104 Views

JavaScript is a widely used programming language for creating interactive and dynamic web applications. However, like any other programming language, JavaScript code can contain bugs that may lead to unexpected behavior or errors. Debugging is the process of identifying and fixing these issues. In this article, we will explore different methods to debug JavaScript files. Method 1:Console.log() Method The simplest and most commonly used debugging technique is the console.log() method. By inserting console.log() statements at strategic points in your code, you can output specific values and track the flow of execution. Syntax console.log(value1, value2, ..., valueN); Here, the ... Read More

How to create a slider to map a range of values in JavaScript ?

Rohan Singh
Updated on 17-Jul-2023 19:13:44

665 Views

In JavaScript, mapping a range of values to another range of values can be achieved through various approaches. One common method is by using a slider. A slider allows users to interactively select a value within a specified range and display the mapped value in real-time. In this article, we will explore how to create a slider in JavaScript and map a range of values from (0-100) to (100-10, 000, 000). Steps to create a Slider to map a range of Values in Javascript Step 1: HTML Structure First, we need to set up the HTML structure for our slider. ... Read More

How to Search the Parse Tree using BeautifulSoup?

Tapas Kumar Ghosh
Updated on 17-Jul-2023 17:30:05

156 Views

Finding the tag and the HTML tree's content indicates searching the parse tree using BeautifulSoup. There are other ways to accomplish this, but the find() and find_all() methods are the most popular for searching the parse tree. We can use BeautifulSoup to parse the HTML tree with the help of these techniques. One benefit of applying Beautiful Soup is that even when we are moving from another language, it is simple for beginners to learn. It provides excellent, thorough documentation that makes it easier for us to pick things up quickly. Syntax The following syntax is used in the examples ... Read More

How to Write a Mobile-Friendly App Using JQuery & Bootstrap?

Satish Kumar
Updated on 17-Jul-2023 15:23:28

167 Views

The paradigm shift towards mobile technology has paved the way for a responsive, user-friendly interface in app design. JQuery and Bootstrap are two powerful tools that can aid developers in creating mobile-friendly applications. Let's delve into how you can use these frameworks to create an efficient, responsive application. Prerequisites Before you begin, ensure that you have a basic understanding of HTML, CSS, and JavaScript. Familiarity with JQuery and Bootstrap is advantageous but not compulsory, as we'll go over the basics. Introduction to JQuery & Bootstrap JQuery − A fast, small, and feature-rich JavaScript library, JQuery makes things like HTML document ... Read More

Introduction to Bootstrap plot

Siva Sai
Updated on 17-Jul-2023 14:24:27

158 Views

The visual depiction of data is essential in the field of data analysis. Bootstrap plots are extremely effective data visualisation tools that provide uncertainty estimates graphically. This article introduces the idea of bootstrap plots and provides clear instructions for making them in Python. Unraveling the Concept of Bootstrap Plots Bootstrap plots, which are often based on resampling with replacement, are graphic displays used to visualise uncertainty estimates. The bootstrap method uses many small data samples to average estimates from to estimate quantities about a population. The relevant data are plotted on the x-axis of a bootstrap plot, and the bootstrapped ... Read More

What are the restrictions of web workers on DOM in JavaScript?

Rushi Javiya
Updated on 14-Jul-2023 10:12:49

381 Views

JavaScript is a single-threaded programming language. It means it executes all code of the application in a step-by-step manner. In some situations, we need to execute computationally extensive tasks. For example, applications with large databases need to process large amounts of data, which may take more time than usual. To improve the application performance in this case, we need to use multi-threading, which can run multiple tasks concurrently. JavaScript doesn’t support multi-threading, but web workers allow us to run particular tasks in the background, improving the application's performance and user experience. However, there are some limitations in using the web ... Read More

Implode an array with jQuery/JavaScript

Rushi Javiya
Updated on 14-Jul-2023 10:06:40

540 Views

In this tutorial, we will learn to implode a given array using JavaScript and JQuery. In web development, many situations occur where we must implode the array. For example, we have given a list of tags and need to implode them into a single string to insert into the web page. Another case where we may require to implode an array is while writing the SQL queries. Here, we will learn 4 approaches to join the elements of the given array. Using the Array.join() Method to Implode the Array The array.join() method allows us to join the array elements into ... Read More

How to create Calendar in ReactJS?

Rushi Javiya
Updated on 14-Jul-2023 10:05:15

4K+ Views

In some web applications, we require the user to take a date input. For example, we need to take the user's birth date or any other particular date as input. In such cases, it is a good idea to show the calendar to users and ask them to select the date rather than taking the date input as a string, as users can make mistakes in entering the string. In this tutorial, we will learn to add the calendar component using the built-in react js libraries or create a calendar component from scratch. Using the React-calendar Library to Create ... Read More

Advertisements