Category "javascript"

with put request data dosent update in ui without reload page

i have an issue .i am doing a project where want to update quantity of product.i am able to sending updated data to database with put request but my ui desent

Transform JSON into required format

Here is my input JSON [ { "date": { "value": "2022-05-01" }, "parent": { "value":

How to find a dynamic node class by pattern in JavaScript

I'm working on this WP plugin and I've been trying to get the ID of a custom post kinda thing that is declared in the body class on each page. So it goes like t

How do I get SVG textPath to work with animated path?

Please view the demo here: https://codepen.io/bsoutendijk/pen/gOvLMaq Expected behavior: After clicking "update path" button, the path will change, and the text

Javascript merge objects with same property [duplicate]

I have an array of objects like this : const arr = [ {"id" : 1, "name" : "john", "age": 12, "fruits": "banana"}, {"id" : 2, "name" : "john

getting error trying to connect proxy to pupeteer

Im getting the error Error: net::ERR_TIMED_OUT at http://lumtest.com/myip.json const puppeteer = require('puppeteer'); (async () => { const browser = aw

JS Function won't generate necessary buttons

I am currently making a budget version of UNO using Java and JavaScript and I am running all of it on a GlassFish Server. I made a function to generate the star

converting one form of json into another form of json object using javascript / node js

here data1 and order of content get changed everytime that why I used switch statement I am running a function by passing value like this parser(values[key]);

Dynamically access object property using variable

I'm trying to access a property of an object using a dynamic name. Is this possible? const something = { bar: "Foobar!" }; const foo = 'bar'; something.foo; //

what's differnce between push() and callback in nodejs Transform

i'm implementing a Transform stream which is piped by mongoose cursor (which works like readable stream, (or maybe it's real readable stream)) const myTransform

Typescript access and assign object property by dynamic key

I am trying to assign a value from an object of type TestInterface to another object of type TestInterface by accessing it with a dynamic key of type keyof Test

How do I download a file returned from FastAPI backend using Fetch API at the frontend?

This is my FastAPI(python) code, which returns a .ics file: @app.get("/latLong/") async def read_item(lat: float,long:float): mainFunc(lat,long) return

JavaScript - safari returns wrong width values

I have built a small gallery which automatically adjusts to the size of the window but the script obviously needs the correct window size to calculate the imag

How to import a JSON5 file (as one can regular JSON) in Typescript?

I would like to import a JSON5 file into a Javascript object in the same way [one can import a JSON file](import config from '../config.json'). Shows this mess

videoTileWasRemoved() not being called after stopVideoInput() is called

When I call stopVideoInput() by clicking a button, on my side the video stops, but on the remote side the video just freezes instead of turning off completely.

in the program below I have to pass 2 parameters as in update method 1st one to check the stored value & second to update the value in Javascript

how can I update a value in the array of objects? class Person{ data = [] // defining an array constructor(fname, lname, gender){ this

Vite - change ouput directory of assets

By default Vite generates files in the source directory under dist. my-app/ ├─ node_modules/ ├─ dist/ │ ├─ assets/ |

REACT- Making 2 different dynamic displays depending on a selection checkboxes ( everything is on the same page now)

depending on the selection of my user Change the type or Choose the comments (he can select only one choice), there will be a different display, but my code dis

Flatpickr onChange event to set end_date

I have two date pickers using flatpickr() - start_time and end_time. When the start_time is selected, I need the end_time to be changed to the same value that w

The edge module has not been pre-compiled for node.js version v14.18.1. You must build a custom version of edge.node. getting this error

{ "name": "electron-js", "version": "0.0.0", "description": "ElectronJs", "main": "app.js", "scripts": { "start": "electron ." }, "author": { "name": "Ralph" },