Category "javascript"

stream works in Firefox only

I'm trying to build a video chat app with JavaScript and PeerJS I want to allow user to join with both video and camera or either of them or neither, everything

Unknown authentication strategy Passport js

I want to have 2 different instances of passport Js for my app (user and admin - both with jwt authentification ). I read in the official documentation that the

can someone open the flow generator?

I am trying to open whatsapp web to test with the bot but the option does not display anything,enter image description here the chatwidget is working and in the

Switch active buttons using useState and useEffect Hooks for Buttons in JavaScript/React?

I am trying to write a useState() Hook, and perhaps add useEffect() to solve active state on two buttons. It is Delivery buttons that needs the first button-del

how to display multi dimension array values on screen

// aap.component.html <ul *ngFor="let items of exceltoJson" > <li> {{ items }} </li> </ul> <input type="file" (change)="onFi

How to open a search dialog using an OWL component?

I am trying to open a search dialog similar to what happens when you click on "Search More..." on a Many2one field widget using OWL. I understand this has to be

How to clear user input in Javascript CodeHS?

I'm using Javascript in CodeHS to create a 10-question quiz asking for user input in each question. After about the fourth question, the user must scroll down t

Inertia compensated mouse position in Javascript

I am attempting to add an inertia type effect to my parallax background which is based on the current mouse position. I have found a script that can take the po

How to sign data with RSA private Key on Javascript/jquery

I got this C# code but I need it to be done in Javascript. The idea is that I need to execute this bit of code when there is no internet in the browser, basical

How do I update Advanced Custom Fields on Wordpress with node-WPAPI?

I'm using node-wpapi to interact with my Wordpress site. I have the Advanced Custom Fields and ACF to REST API plugins installed. I'm trying to use wpapi to upd

HardHat Unable to download compiler versions list

So this is my first interaction with hardhat. I created a sample project using npx hardhat but for some reason, when I try to Run: npx hardhat test I get the f

Replacement for require in Vuejs 3 with Vite for image array

I'm currently switching to vite with vuejs and have the following problem: I have a component in debugging that displays images from a folder: imageArray: [

getUserMedia html js web camera not working on android

I'm using getUserMedia to make a website that can display a camera stream. The problem is, my code works on computer, but not through a mobile browser. Does any

How do I get useEffect to run on array sort? [duplicate]

I have an object like this const example = [{medicineName : "Some name" medicineId : 1} {medicineName : "Some other name" medicine

Java Script: How to check if value is number with typeof operator

How do I check in the if statement if _energyLevel is a number? I need to use the typeOf operator for that. Thanks for your help :) const robot = { _model: '1

Is there a built-in Three.js heightmap function?

I am currently working on a game in JavaScript, in Three.js. I am curious if I can add a height map to the walls that I have to make them more realistic (see im

Replace multiple strings from CMS in Javascript

This code currently gets 'dynamic words' from the CMS and changes those to span's, which get a eventlistener on it whereas you click on them, something happens.

Tone.js with ESM modules

I am trying to use tone.js on ESM modules. (I could use it without problems in “commonjs” with a bundler) In the html I have <script src="tests.j

Can't access my pages by URL, only by links in next js [duplicate]

I have an application built with next JS. It works fine in development, but when published to the internet, I have a problem. The only way I c

JQuery UI not applying custom style sheet

Not sure what is happening i have notice that our live site vs a dev enviroment the style sheet shows just fine in the head and in the network traffic - however