Questions Tagged [Javascript]

Questions Tagged [Javascript]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

2,388,308 questions
0 votes
0 answers
5 views

CSS keyframe animations running each time on hyperlinks

I have an issue with CSS animations. So basically, I have a component which is a megaMenu dropdown and when I hover over each link, it animates everytime and I want to animate only once, when I first ...
0 votes
0 answers
7 views

what should be the offset width of the following so that is it should stop on the maxScroll

I've tried to calculate the offset width, which i found to be bit higher for this case. Kindly calculate the offset width and let me know. And if there's any shorter and simpler way to find offset ...
0 votes
0 answers
12 views

Getting values from variable with iterative names in JS

I am trying to show the values stored in the request.body object variables. As filled and submitted from a HTML form the variable names are like sub0, sub1, sub2 ... But how do I call them? request....
0 votes
0 answers
3 views

Gmail Oauth2: Capture a request at the browser level after authentication completes

After my web application completes the OAuth process and redirects to my web application only, google returns a "code" in a request to get the access_tokens later. Is there anyway i can ...
  • 173
0 votes
1 answer
17 views

Create Checkboxes, in a single row, with Javascript

I am trying to build a simple web page that dynamically creates a row of checkboxes. First, I figured out how to put the checkboxes in a single row: .checkbox-inline { display: inline-block; } &...
0 votes
0 answers
6 views

What's most optimized way to load multiple pdfs in a react/nextjs app?

I've been trying to use react-pdf, but my pdfs are still quite heavy. Some pre-processing might be needed. I was thinking about converting all PDFs into jpg preview on a s3. I would then be able to ...
0 votes
0 answers
6 views

@mouseover canot change a variable value

Hover event is not working in this vue component, I tried to call a function on hover and it worked but I can't change hover variable directly <template> <div @mouseover="hover = ...
0 votes
0 answers
4 views

Gmail API : Extract "code" param from the URL of a pop-up window to get the access_token details

Iam trying to authenticate gmail using OAuth2 for my web application. From the server, we return a url to the client, which then uses that to open a pop-up. The code is as shown: var win = ...
  • 173
1 vote
1 answer
7 views

How to load a random quote from API using an event (onLoad or other) in ReactJS?

I'm making a simple random quote generator. Here is my code so far: import React from "react"; import "./App.css"; function App() { const [quote, setQuote] = React.useState({ ...
0 votes
0 answers
15 views

Pause HTML5 video autoplay after 5 seconds and resume on scroll

I have html5 video which autoplay on page load. What I want is the video to pause after 5s and on scroll to resume(continue playing) At the moment I stop the video like this but apperantly the video ...
0 votes
0 answers
5 views

Prisma findmany() gives me a server error?

I was testing my new implemented prisma/postgresql database, but while searching for specific keywords, I got this error : "Error: Invalid prisma.easytokens.findMany() invocation: Error occurred ...
-3 votes
0 answers
9 views

How can i style my html using javascript without any error even if the codes are correct

I have been trying to style my HTML text using JavaScript,setInterval to be precise but it has been giving me error and not functioning...any solution please
-1 votes
1 answer
32 views

How to set destructuring values?

I have this: const { user, id, name, desc, photos, video, price, } = route.params; <ProductFooter selectedOptions={selectedOptions} {...route.params} /...
0 votes
0 answers
18 views

How can I show several different divs in the same popup?

The screen i'm trying to make; The screen I can do; As can be seen from the pictures; The divs in the 2nd picture are separate from each other. I'm trying to do as in the 1st picture, but I couldn't....
  • 112
-1 votes
1 answer
13 views

Select even and odd words from a sentence given in a prompt window [closed]

I’m Educating myself in high school to become a developper and i got an assignment where i need some help: Write the evenOdd() function. Ask, via a prompt window, a random sentence of at least five ...

15 30 50 per page
1
2 3 4 5
…
159221
Marcus Vance
Author

Marcus Vance

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.