Category "javascript"

What does this error mean and how would I fix it: throw new TypeError('app.use() requires a middleware function')?

I am trying to create a login page and sign up page, my app.js gives me this error, I think it is the last line of this code. I can send you the other component

why is props undefined?

I'm trying to access the product details on the next component but it says props is undefined. All the details in the card is present and renders correctly. I r

Validate form before move to next page

I have coded my own validation form. Is there anyway i can prevent page from submit to php (action="process.php" Method="POST") if form is not validated. I have

Unhandled error event and cannot read properties of null nodemon app crashed

[nodemon] starting `node app.js` Server started on port 3000 node:events:505 throw er; // Unhandled 'error' event ^ TypeError: Cannot read properti

Electron JS ReCaptcha Harvester

I need to make a recaptcha V2 harvester in Electron JS. I tried the following code but all I get it "ERROR for site owner: Invalid domain for site key". I think

Javascript Animated Skill Bar On Scroll

I'd like to activate all of this animations whenever I scroll to a certain section, in this case the second one.So basically it starts with the section one and

Firebase Firestore - Get recent trending posts

How can I query for "recent trending posts" using Firestore? I am considering it as "recent" if it is was uploaded in the last 4 hours. I am considering it as

Using Typescript with transpiled, unsupported/custom language files

The Problem I have JavaScript-like files with extension .gml I can convert the source to valid JavaScript via magic-string, and can go back the other way using

Is it possible to interact with PDF-VIEWER (Selenium or other tools)?

This issue has been driving me crazy lately, I've been looking all over the internet for days and just found unaswered questions. Is it possible in any way to i

In javascript react how to remove two symbols that end up together in a string but keep the last one like a calculator?

Basically I am doing a FreeCodeCamp project and I am stuck one of the last points on the checklist. What we have been told to do is to make a calculator that ha

Not able write a jasmine test case for radiobutton, eventlistners and buttonclicks

Below is my code I want to do Jasmine test on it and I was wondering if I use beforEach and afterEach or may be spyOn() on it? I get test to pass if expect(func

How to make link sharing in php

Videos come from a folder and are automatically displayed on my website. But I am having a problem at implementing share feature. All I want to do is when share

How to verify user based on reCAPTCHA user response and secret key in react.js?

When reading the documentation, the following methods of verifying the user are shown: For web users, you can get the user’s response token in one of thre

MUI Datepicker how to disable next month only

I'm using MUI v5 and I want to disable next month only in datepicker. Others are available

browser won't load css stylesheet for my local website using express and node

And the app.js screenshot: I tried every possible combination of href and express.static(""); adresses. I either get a response from a browser saying browser

how to make a shopping cart in javascript

I'm having trouble making a shopping cart using Javascript for a project. I made buttons called Add to Cart, and I tried various ways so that when I click on th

'Object(...) is not a function' in Amplify Authenticator in vue2

I would like to use the AWS Amplify Authenticator in a js vue2 app. The manual that I used can be found here: https://github.com/aws-amplify/amplify-ui/tree/leg

How to set compilerOptions.isCustomElement for VueJS 3 in Laravel project

I'm working on VueJS 3 inside Laravel project and I'm using a JS file which providing me with elements that I use for markdown toolbar. Basically it's a set of

How to get data from Django Rest Framework to GoogleMaps in JS

I am trying to build a web app which should get data from Django Rest Framework (using Serializer) and pass it to JavaScript and generate markers of GoogleMaps.

Imitate click with jQuery to get filtered multigallery by URL

I have website, created with Elementor. Website belongs to photographer. He has got there an Elementor Multigallery, with filter at the top. I need to create ex