Category "javascript"

Image path URL not Rending right in google apps script

I am trying to build an web app using apps script it was working well till yesterday but I don't know why my password recovery pages not rendering right. the im

What is regex for square bracket character in javascript [closed]

Can anyone tell me how to make regex for square brackets ( [ ] ) in JavaScript?

ReactJS and Azure library problem with displaying certain elements

so I'm doing a school project where I'm trying to fetch data from my Azure blob-storage and then displaying it on a website which is creating in ReactJS. I've m

WebRTC Perfect Negotiation Vue 2

I'm implementing WebRTC Perfect Negotiation in my Vue 2 application. The app will have multiple viewers and a single streamer. After a lot of logging and debugg

Shuffle multiple arrays in the same way but with Lodash

I've got two arrays const mp3 = ['sing.mp3','song.mp3','tune.mp3','jam.mp3',etc]; const ogg = ['sing.ogg','song.ogg','tune.ogg','jam.ogg',etc]; I need to shuff

Drawing a smooth line in p5js

I have a function that I created which draws a line from the coordinates of its first argument to the coordinates of the second argument. The code runs the func

Warning: Function components cannot be given refs

I'm using Next.js latest version for making my blog website, don't know why show me error, when I'm trying to make my form then show me error like this: Warning

Cannot find module '/home/container/node_modules/sqlite3/lib/binding/napi-v3-linux-x64/node_sqlite3.node'

Everything's running perfectly throught cmd on my pc but when i host it on my host servers i have this error: `:/home/container$ npm start knexfile.js Starting

What are valid codec strings to be used in the web codecs API?

I want to know exactly which strings I can pass as codec to VideoEncoder.isConfigSupported({ codec, width, height }) but so far I have not found a definite answ

In VF page popup modal should open first then content of vf page

I have one VF page. I want user should able to access that vf page after entering password in modal that open first when VF page loads. But currently when VF pa

Could not invoke StripeSdk.initialise

Problem Image I'm not able to start Stripe in react native using expo const [prepared, setPrepared] = useState(false); const [isAvaliable, setAvaliable] = useSt

How to append "delete button" to EVERY list item that is newly created in JS?

Shopping List exercise using JS DOM. My full code: https://codepen.io/lil_a/pen/BaQKvqZ?editors=0110 I have to add a new "Delete" button to every newly created

How To Pass Props To Function Component use react-router-dom v6

I want to pass props into a function from the route, my code currently looks like this Route <Route path="/person" render={(params) => <ProductDetails

Using IFrame to check if a NVR is online or not

I have a group of around 10 NVRs that I would like to be able to display on one page whether they are online or not. Currently I do this with a HTML page contai

Find and redirect to appropriate email client based on email address

I want to add a confirm email address link similar to what trello does. Based on which email client you use I want to redirect user to appropriate url. For exam

Editorjs custom block renders twice on click when made as default block in react project

I followed this tutorial to integrate editorjs in react and create a custom editorjs plugin. This tutorial works fine to create a custom block but I wanted to m

passing props as classNames in next.js

I am trying to have the header of each of my app's pages change color based on the current page. How I am trying to achieve this: <Header className="headerBi

Jest Runner won't allow me to debug tests just skips test each time

skipped test When pressing debug on the test it just skips it. It works for other tests in different repositories that I have, but for this specific one it does

How can I fill my array in JavaScript depending on user input?

How can I fill my array depending on user input instead of changing this array manualy in JavaScript? How can I link my form in HTML to my javaScript ? let mov

Why does frame selection breaks after page reloads?

I am trying to inspect a page with playwright that holds a frame document that when I click a button a banner will appear for a couple of minutes. When it's don