Category "javascript"

is there an alternative to onfocusout() function?

I have the function onfocusout() that runs another function selectEntite(), inside an input like the following code : <input onfocusout="selectEntite();" ty

Beginning at the end of 'a', insert 'b' after every 3rd character of 'a'

I've been trying to solve this challenge (found at jschallenger.com): Write a function that takes two strings (a and b) as arguments Beginning at the end of 'a'

How to create a simple post like facebook without using a database and stack it together, With only HTML, CSS, & JS?

Greetings, I need some help again. I am creating a simple webproject and I want to share it with my friends. I just want to know, It's possible right? "How can

Front end Sensitive info

I am building my first react app and not sure about front end security. I am making a call to the following third party library: emailjs.sendForm(serviceID, tem

Redux store takes lil bit time to update store which causes else block to execute and hence get redirected to unintended page

//PrivateAuthComponent.js import React, { useEffect, useState } from "react"; import { useSelector } from "react-redux"; import { useRouter } from "next/router"

Fetch some (and not all) properties from a list in Firebase Realtime Database

Suppose there is a list in my Realtime Database such that it has a user list at location userList as: user1: { age: 20, name: john } user2 : { age: 40, name: s

Refresh data table event after file upload

I am beginner web developer. I make my first project in Vue. I make form with files upload in vue 2 and laravel. My full code: View: https://pastebin.com/QFrBfF

Node.js Unable to send multiple csv in an archive folder

I'have currently a problem to create and to send an archive from a node.js server. In fact, i succeeded create an archive with 5 csv files on the archive but wh

React router component not destroying when user leaves the page

I have a video player (jsmpeg player) that opens up a websocket to a server to play live video. The way the video server works is that it counts the number of c

Should I use event delegation, to be economical with JS-events at i.e. table cell level?

If I have a table in which I want to react to table-cell events, is it better to put the event on the table-element and handle cell specific events with the hel

Angular Ngoninit getting called everytime while routing

I have one component Details where the routes for other child components is there. What is happening is that when I route to any other child component then the

DOMException: Could not start video source | only in Chrome

I am trying to get a video from my webcam. My code is working in Firefox and Microsoft Edge perfectly but not working in Chrome. I also host my code on an HTTPS

Playwright: .toBeVisible() timeout is ignored

I faced an unclear behavior in the Playwright 1.18 toBeVisible() expectation. Here is the test row: await expect(this.page.locator('.top-row .close i')).toBeVis

While testing API containing pagination in postman facing skip value error

I am using pagination middleware in my node js project but while testing api in postman it's throwing error skip value Followed the paginate docs but still no u

Error while generating FCM token using django

This is error that i am getting in my javascript console: An error occurred while retrieving token. DOMException: Failed to execute 'atob' on 'Window': The str

Intellij IDEA: "Cannot find declaration to go to" - message in a new javascript project

I'm getting "Cannot find declaration to go to in" message when try to Ctrl + click the path of an imported module This message shows up if the path contains "@"

Sanity documents not showing

Whenever i create a new document in sanity using 'createOrReplace'. It successfully creates the document, but however it doesn't show the newly created document

Moved from React Native Stylesheet to Styled components. How to add elevation when styled components do not recognize elevation as a property?

I have the following simple component that used React Native Stylesheet up until now, but right now I'm trying to move onto Styled components. I'm just a bit co

How to set maximum line of text using flex css react

I'm having a screen like this But it look actually not so good if the title or author is so long, so i wonder how can i set maximum of text line to fixed numbe

view config getter callback for component 'div' must be a function (received 'undefined'). Make sure to start component names with a capital letter

Error is: Invariant Violation: view config getter callback for component 'div' must be a function (received 'undefined'). Make sure to start component names wit