Category "javascript"

how make pattern of array based on row column

I am trying to make a new map array also image random (you can say it is like a slot machine): get arrayCardsID() { const cards = Lib.arrShuffle(CARDS.map(c

setTimeout function is running infinitely

I read that setTimeout function only runs once and setInterval function runs infinitely. But in this code of digital clock which I picked from w3schools setTime

how make pattern of array based on row column

I am trying to make a new map array also image random (you can say it is like a slot machine): get arrayCardsID() { const cards = Lib.arrShuffle(CARDS.map(c

Cypress environment variable undefined

In cypress.json file i have the following code { "baseUrl": "test", "ignoreTestFiles": [], "viewportHeight": 768, "viewportWidth": 1024, "video": fals

Cypress environment variable undefined

In cypress.json file i have the following code { "baseUrl": "test", "ignoreTestFiles": [], "viewportHeight": 768, "viewportWidth": 1024, "video": fals

Correct approach to enable or disable sidemenu on certain pages in Ionic 3?

I have gone through this SO link Ionic - How to remove sidemenu on login page only? and tried the solutions provided here. Based on the solutions provided in t

MUI React, Minimum Date

How can I set Minimum Date, so the user can't pick To Date that is before From Date. Here is my Two Date Pickers, using moment to format the date.

How to remove this error 'No application configured for scope type 'websocket''

I am trying to build a chat app with Django but when I try to run it I get this error No application configured for scope type 'websocket' my routing.py fil

React app returning 500 Internal Server Error

I have a react app, created using create-react-app. After I run npm run build, and deploy the app as a static site, everything works except when I refresh the

FabricJS image in vue component not appearing

I want to use manipulate images on a canvas with FabricJS inside a VueJS app. In my view component, I am passing in a prop called background and using fabric.Im

make .d.ts for external library file available for project

I have a closed-source plain JS library that will be included via a <script> tag pointing to a CDN. I would like to author my own type definition file for

How to handle recapcha on webdriverio?

I am having an issue when running multiple tests one after another in webdriverio. When I am running multiple tests (for example a describe that contains multip

Block blob url access

I could not find how video platforms such as youtube block access to the blob url address. When I try to go directly to the blob url or send a request with f

Can't save state in React while POST API request

I have handleSubmit function that send two POST request, one for img upload and one for other information. I want to take the response from the img upload reque

CheckBox in Nativescript (ios and Android)

What is the best way to create checkbox in Nativescript with javascript? I know if I use checkbox it's only for Android, and I have problems with the switches.

react-navigation: How to change tabBar color based on current tab

I'm getting started with react-navigation. How do I change the tabBar background color when I change tab? Here is some pseudo-code showing what I'm hoping for:

Uncaught Error: Module build failed (from ./node_modules/babel-loader/lib/index.js): SyntaxError: Unexpected token (24:11)

I am using vue 3 to develop a google chrome extension. I want return a simple div in Vue 3 render function, this is the code looks like: import client from './c

TypeError: rl.question is not a function - NodeJS - using play.js

I’m trying to use the readline library within play.js which is an iOS app on my iPad. const rl = require("readline") rl.createInterface({ input: proces

Focus Picker component on react native

I have a Picker component as a part of a form on react native. I want to focus the picker when the user click on the submit button on the keyboard just as I can

How can solve this error "Uncaught TypeError: inputArgs[0].match is not a function"

When login first then immediatly show:- "Uncaught TypeError: inputArgs[0].match is not a function" this error . I'm using react-firebase-auth hook. when I try