Skip to content
the poor coder

Home / Author

Poor Man

2,994 posts
2023

Javascript noFill

The noFill function is a useful tool in JavaScript when creating graphics on an HTML canvas. By setting the fillStyle to "none", this function clears the canvas without affecting the current strokeStyle. This function…

javascript1 min read
2023

form data object

Form data objects are used to store and send form data to a server. It can be used to store any type of data in key-value pairs, including strings, numbers, and even files. Form data objects are created using the…

javascript1 min read
2023

multiple magnific popup

If you need to create multiple magnific popup elements in your HTML page, you can use the jQuery plugin magnificPopup. This plugin will allow you to create a gallery of multiple magnific popup elements. To do this, you…

javascript1 min read
2023

de-encrpting data in javascript

It is possible to decrypt data in JavaScript by using the CryptoJS library. CryptoJS is a cross-browser JavaScript library designed to make it easier for developers to encrypt and decrypt data within the browser. It…

javascript1 min read
2023

create text node in javascript

Creating a text node in JavaScript is actually quite simple. To do so, you must first create a document object, then create a text node object, and finally insert it into the document. To create a document object, use…

javascript1 min read
2023

jquery automatically click message alert

When responding to a question about jQuery automatically clicking a message alert, it’s important to understand the JavaScript code that is being used to trigger the message alert. In order to automatically click a…

javascript1 min read
2023

react promises

React promises are used to ensure that a given task is completed before continuing to the next step of the program. This helps to ensure that tasks are properly executed and that any errors that occur during the process…

javascript1 min read
2023

How to install moment.js

Installing moment.js is easy and straightforward. All you need to do is to include the moment.js JavaScript file in your HTML page. This can be done in two ways: 1. By adding a <script> tag to your HTML page, pointing…

javascript1 min read
2023

js substring between two characters

This function can be used to get the substring of a string that is between two characters. For example, if we have a string such as "This is a [sample] string", we can use this function to get the substring between the…

javascript1 min read
2023

save html page as image using javascript

HTML pages can be saved as images using JavaScript by using the HTML5 canvas element. The canvas element is a HTML element which allows you to draw graphics on a web page using JavaScript. This can be used to capture a…

javascript2 min read
2023

how to formatting json format in django rest api

Formatting JSON in Django REST API makes it easier for developers to read and use the data. To do this, you can use the built-in django.core.serializers package to make formatting your JSON easier. First, you'll need to…

javascript1 min read
2023

proptypes object

PropTypes is an object-orientated JavaScript library used to validate the props passed to a React component. It allows you to check the types of data that are being passed to a component, ensuring that they are valid…

javascript1 min read
2023

javascript remove oldest array object element

To remove the oldest array object element in Javascript, there are various methods to achieve this. The most common approach is to use the Array.shift() method. This method removes the first element from an array and…

javascript1 min read
2023

react top loading bar

When creating a loading bar or progress bar with React, the basic steps are as follows: 1. Create the container to hold the progress bar. 2. Create a child component that will display the progress bar. 3. Set a state…

javascript1 min read
2023

javascript array to table

I'll start by explaining the basics for this question. A JavaScript array is a data structure that stores a collection of related items. Each item in the array is called an element, and each element can have its own…

javascript1 min read
2023

make input bigger if text does not fit

One way to make the text bigger if it does not fit is by using HTML and CSS coding to adjust the size of the text. In HTML, you can use the tag to create a division within the page, and then specify the size of the font…

javascript1 min read
2023

convert base64 to image nodejs

Base64 encoding is a way of representing binary data using only characters from the ASCII character set. It is commonly used to send small binary files such as images over the internet, and is also used to encode data…

javascript2 min read
ESC