javascript Questions

4

I want to allow only English characters and numbers in HTML input field (A-Z, a-z, 0-9 are allowed). I don't want someone inserting special characters with copy/paste.
Yeasty asked 21/7, 2015 at 8:46

5

Solved

I'm stumbling on an error every time I run npm run build error: /node_modules/mini-css-extract-plugin/node_modules/schema-utils/dist/validate.js:66 const ajv = new Ajv({ ^ TypeError: Ajv is not a...
Pannier asked 14/2, 2022 at 11:45

2

Background I am working on a tool that would let users upload HAR files and keep replaying them over and over and gather analytics, like average speed over time, service availability etc. I...
Hoehne asked 6/2, 2015 at 4:8

3

It seems that vite does not do automatic polyfills anymore - vite 4.0.0 How do you guys go about this? I have tried multiple variations of what I could find over the internet and none of them seems...
Interplead asked 24/1, 2023 at 10:33

4

I'm trying to create a webapp with Next.js (13.4.9) and I would use the server action. With the server action, I would send data to my action, this action is going to treat this data and return me ...
Proficient asked 12/7, 2023 at 13:48

3

Solved

I'm working on travelling website where I used a bootstrap tab. In first tab there is some content and in second tab I showed a full calendar js. All is working fine but when I show full calendar i...
Exequies asked 4/9, 2019 at 20:31

4

I'm trying to build a screen recording with MediaRecorder API. As Suggestive MediaRecorded Approach var chunks = []; var recorder = new MediaRecorder(stream); recorder.streams = [stream]; recor...

3

Solved

This is my primary react file: // App.tsx const App: FC = () => { const isLoggedIn: boolean = localStorage.getItem('logged_user') !== null; return ( <BrowserRouter> <Routes> &...

3

Solved

I'm playing around with the new PayPal Javascript SDK buttons here https://developer.paypal.com/docs/checkout/reference/customize-sdk Our app sells digital goods and doesn't require a shipping add...
Tournai asked 11/3, 2019 at 0:10

4

Solved

I'm have this very simple React code: const onSelectTournament = (e) => { console.log(e); }; And this HTML: <div onClick={onSelectTournament}></div> But on console, instead of obt...
Shirleyshirlie asked 20/12, 2021 at 18:56

5

Solved

I'm fighting with a custom comparison functions for Lodash's _.isEqualWith. I'd like a function such that this is works: const comparisonFunc = /* ...TBC... */ // Should be true: _.isEqualWith({ ...
Dymoke asked 10/9, 2019 at 16:27

3

I have tried using customized tooltip but my problem was I don't know how to get the index of the payload that is hovered. What I want is to show only the value of the hovered line in the tooltip. ...
Mysterious asked 8/3, 2018 at 15:2

1

Can anyone explain to me why an observer set up to observe a single element would return multiple IntersectionObserverEntry's? I've noticed this in my Vue project, but it isn't consistent and it se...
Bedfordshire asked 20/12, 2018 at 3:46

3

I have an extension that generates content in the built-in chrome sidebar on click of an element in the current page. I also am using a content script to add some highlighting to the clicked elemen...
Westernmost asked 8/9, 2023 at 1:59

1

MediaPipe project's source code is hosted at https://github.com/google/mediapipe We can use MediaPipe using JavaScript also in Browser given at MediaPipe in JavaScript While using MediaPipe with Ja...
Revenue asked 28/8, 2021 at 10:18

4

I create a fresh Next.js project using: npx create-next-app Then I move into the folder, run npm run dev and am getting the following error: C:/Users/mikke/Documents/Projects/next-project/pages/_a...
Miscarry asked 9/2, 2021 at 10:59

2

Using: Next.JS 14.0.4; iPhone 14 I need to detect if and how user moves his phone using React.JS (I'm using Next.JS 14.0.4). For this purpose I began looking for some libraries that can detect it w...
Ibnsaud asked 30/1 at 15:50

1

I'm using MediaRecorder to record animation from the canvas element. After downloading the video, the video information is empty (duration, bitrate, frame rate...) Here is how I make the download ...
Neom asked 10/8, 2020 at 4:23

4

I'm using expo-router and need to pass some params back. How to do that? I use router push here: <TouchableOpacity style={styles.qrButton} onPress={()=> {router.push(`/rent-bike/qr-scanner`)}...
Espinosa asked 5/5, 2023 at 15:49

5

Is there a way to get text content from a React element stored in a variable without ref? There is a functional component, that receives title prop, which contains react element: function component...
Upstate asked 28/7, 2020 at 19:4

2

Solved

I am working on a chrome extension, and I would like to be able to track metrics with google analytics. I believe the easiest way to do that would be through tag manager, and I have found this tuto...

3

I'm using AgGrid table in my application. Here is the demo. According to the documentation i want to stop movement of the columns. For this i used: suppressMovable: true The above code I used here...
Chemash asked 15/9, 2020 at 14:2

5

Solved

I want to open a alert box when a certain link is clicked. How to do that ?
Thread asked 17/4, 2015 at 8:54

3

I've three fields : referenceMonth(string), openingDate(string), closingDate(string) in Formik form. I would add an error to openingDate when openingDat isn't the same month as referenceMonth. expo...
Agle asked 2/4, 2021 at 9:49

12

Solved

Maybe it's stupid question but I cannot realize is that possible to flatten multidimensional array without recursion? I have one solution written by me with recursion: function transform (arr) { ...
Tubule asked 4/12, 2014 at 20:26

© 2022 - 2024 — McMap. All rights reserved.