Category "javascript"

Webos clear localStorage when uninstall

I'm developing a webOs app with vanilla JavaScript. The app don't pass the LG QA processing because when uninstall the app and install again the keep users toke

useSelector doesn't update value in Next.js

I have a problem, createAsyncThunk function makes request to server (axios) and then get data, after that extraReducers handle builder.addCase in it and makes s

Finding documents that fit json input in mongodb

I'm trying to do a write statement that finds all the documents that fit the JSON data fed through a form. Here's an example of what the JSON looks like. I crea

How to target each page of the pagination for adding an event in Vuejs?

< script > export default { data() { return { perPage: 3, currentPage: 1, items: [{ id: 1,

peer.id refuses to change

Here is my code, I use a live server (created with live-server in VS code) var peer = new Peer(Math.floor(Math.random()*2**16).toString(),{ host:'127.0.0.1',

Inject Javascript in BlazorWebView

i'm trying MAUI Blazor and potentially it's really cool, but i had some problems ( a lot). I want to call some javascript function to the main blazorwebview but

JS or Angular Copy Text with Image

I need to copy both text and image in single click. I tried below code. I clicked and pasted only I'm getting "clip_message" My HTML: <button id="copy" oncli

How to use map filesystem folder to debug original sources in Chromium Developer Tools

I have a website running at https://somewebsite.com/. It references a compiled javascript file: /js/site.js mapping file is also available on the server /js/sit

Javascript: Object method - why do I need parentheses?

I am learning javascript and Ive stumbled upon issue that I do not understand. Could somebody explain to me why in method compareDNA I need to use parentheses w

how can customize antd datepicker footer?

I am working with Antd datepicker and I want to customize its footer like this. How can I do this using css? releated sandbox: https://codesandbox.io/s/customi

angular and rxjs - removing properties from object

I have an endpoint that returns the following object properties: { "id": "1", "department": "sample", "address": "sample", "email": "[email protected]",

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; //