Category "javascript"

Add Class in html Dynamically in PHP

I am trying to add class in anchor tag dynamically by using Java script or Jquery. I have find many solution but not what i am looking. I am want to use PHP dyn

failed to load response data request content was evicted from inspector cache

i am trying to get file from server that has size of(15mb) through Axios Request. showing status "200", but not sending file previewData(base64) and showing thi

Server responds with status 405

I'm running into a small issue with my "server". So while I'm trying to learn backend to frontend communication, I was messing around and trying to create an "a

Javascript / JQuery Contenteditable resize handles should set table column width parameter

I'm looking for a solution primarily supported by Webkit browsers (Chrome / Edge / Safari) that allows table columns to change the actual width of these columns

How to prevent an animation from pausing between keyframes and, additionally, make it run even when not on mouse hover

I have a two part question regarding a single code. I've been trying to make a text the letters of which will jump and flip on hover and so far I've managed to

Global map variable in Leaflet

I'm working in Leaflet, trying to do some zoom methods to remove layers when I zoom out. var map; //function to instantiate the Leaflet map function createMap(

how to configure webpack HMR with express

package.json scripts: "scripts": { "build": "webpack --config config/webpack.prod.config.js", "dev": "webpack --config config/webpack.dev.config.js &a

Incorrect year after unix time convert

I have the following code. I'm trying to convert the unixtime to date format and i get a wrong year (Sun Mar 24 48447 18:26:27) instead of 2016. //obj.uploa

Does JavaScript have tuples?

I would love to know if there are python type tuples in JavaScript. I am working on a project and I need to just use a list of objects rather tan an array.

how to download file in react js

I receive file url as response from api. when user clicks on download button, the file should be downloaded without opening file preview in a new tab. How to ac

How to sort a map by value in JavaScript?

How to sort this map by value? var map = new Map(); map.set('orange', 10); map.set('apple', 5); map.set('banana', 20); map.set('cherry', 13);

How can I create a Bootstrap popover from Javascript?

I am creating a page with a series of analog clocks that can contain meetings (if there is a meeting, that period of time is highlighted blue on the clock), whe

Chakra UI, Tabs onChange method throws Maximum update depth exceeded on state change

I have the following code, React throws Maximum update depth exceeded error, whenever I change the change the index, It is somehow forming an infinite loop, and

How to populate a div from the data from fetch

I am getting my output in a react app at this.state but I want to bring this outside and populate div so that I can show it at the frontend. How can I do it? f

JQuery Filterizr doesn't work correctly with a large list

In my Asp.net MVC application, I use Jquery and to filter a product list. It works perfectly with a list of products of 80-90 elements. But when there is a larg

Handle null with localecompare typescript

I have the following sort: let sortedCon = this.con.sort((a, b) => a.lastname.localeCompare(b.lastname)); I am trying to get it to handle nulls and mainta

Node.js tcp socket shut off trigger

I use node.js with the NET class to connect multiple Rasperry Pi's. //Server const net = require('node:net'); const server = net.createServer(); //Client c

Axios: how to cancel request inside request interceptor properly?

I want to cancel the request if there's no token so I do like this: instance.interceptors.request.use(config => { if (!getToken()) { console.log("inte

Sorting, Skip and Limit(Skip) queries for Amazon DynamoDB

I am new to AWS Lambda, Amazon DynamoDB and serverless. I have one user table want to do like this. I want to fetch records pagination wise in each page fetch 1

Find and replace duplicate rows with the newest data in a defined range using Google Apps Script

Google sheet using columns A:M. Each day a new set of raw data (around 30 rows) is pasted on the next available row in column B manually. This raw data contains