Category "javascript"

How do I add input data to JSON array in React.

I've been working on understanding React concepts and did my Todo project. I have the dummy data displaying, but can't add a new value to my dummy data, which i

How to show selected value using javascript in laravel

i want to show the selected value to the select option, the value actually selected but cannot show that value on select option form. for example i have a 3 val

live goelocalization of objects within a limited area with an existing data

I want to present and visualize multiple objects (with their height represented in cylinders, their directions, and other characteristics ) in a limited area o

Global variables in Javascript and ESLint

I have got multiple javascript files and I have defined some global variable in a file which loads before the others. As a consequence all of the files loaded a

[Vue warn]: Error in nextTick: "NotFoundError: Failed to execute 'insertBefore' on 'Node'

I'm receiving the following error messages in my Vue web app occasionally but when it does happen, it completely halts my app. Error msg 1: [Vue warn]: Err

MaterialUI Select set value is always out of range

i've a MaterialUI Select code, and i'm handling the value parameter dynamically. My problem is, when i set any value, it says always it's out of range, even sho

Need to fetch text of a span class inside iframe in playwright javascript

Image of HTML structure Can someone explain me how to get the text of the start game button which is present inside iFrame in Playwright JavaScript , I tried us

How to parse a json that returns an array of objects

I did some back-end changes to send 2 JSON from localhost:3001 It looks like this now: const response = await fetch(apiURL); // fetching the data from the a

Ionic ion-menu-button not working on first load

<ion-menu-button autoHide="false"></ion-menu-button> At first load it give an error: zone.js:1102 Unhandled Promise rejection: Cannot read properti

My array inputs will not stay when I push a value (Javascript)

Good day everyone, I have some troubles with pushing a value into an empty array. Currently, I want to push a value (subLayerLength); there is only one value th

Music player playlist logic

I'm creating a small music player web app, everything works fine, I have a problem: I want to create a playlist for it too and I'm kind of beginner in JS and I

How fix "BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default" error?

I want use "web3" and "walletconnect/web3-provider" package on vue & laravel 8. I install it by npm i --save web3 @walletconnect/web3-provider command and a

How to know when image preloading is done with javascript?

Per this extremely popular question, preloading images with javascript is as easy as: function preloadImage(url) { var img=new Image(); img.src=url; } But

Empty spaces added around HTML text when using Angular interpolation

Any idea why an empty space is added before text in HTML when using interpolation in Angular? Exemple in my Angular HTML template: <div class="info-title">

How to implement ScrollMagic videos to start on iPhone

I built my website which has 3 videos with scrollmagic. It works perfectly on pc, android, and iPad (in Safari too). But these videos does not start on my iPhon

Puppeteer - custom fonts not loading in pdf but do appear in screenshots

I am trying create PDF files dynamically using the puppeteer lib but the pdf that is generated doesn't use the custom fonts (.woff) instead uses default system

Google Maps. Multiple maps with multiple markers with content

I have this code to call multiple maps in one page, it's calling everything using arrays to make the code as short is possible. from the question: Multiple goo

How can I solve this problem with mongoose connection?

This code worked for a while and I don't know what I did but it gives me this error. I saw a some guys said that update the Node, but it doesn't work for me. Mi

Changing font color in javascript

Here's my javascript code: if (password != confirmPassword) $("#divCheckPasswordMatch").html("Passwords do not match!"); else $("#div

Swiper js showing 3 identical slides when there is one slide

I'm trying to have 3 visible slides in the page. The problem is that whenever there are less than 3 slides those slides are duplicated to fill also the empty sp