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.

0 votes
0 answers
24 views

Generating an interval based on max and min value

i've been working on a script in javascript to draw graphic charts and curves based on various type of data on differents mesures on each category like g, kg , tonnes for weight or C° or F for ...
user avatar
0 votes
0 answers
7 views

How to detect in Whatsapp-web.js when a number is typing or when it has received a number link and has clicked it

I need to trigger an event when a person has received the link of a bot.This bot is going to send a specific message but the event has to be when the person clicks a link, because this library has ...
user avatar
0 votes
0 answers
7 views

aws-sdk .SharedIniFileCredentials profile: 'wasabi' browser alternative

I am trying to implement S3 file hosting at wasabi using the examples from their docs. While setting up credentials with SharedIniFileCredentials works great in Node, I would need to use the same ...
user avatar
0 votes
0 answers
12 views

AWS cognitoAuthenticationProvider callback is not executing

I'm learning AWS so go easy on me if this is an obvious issue. My goal is to use the Cognito Authorizer in API Gateway to authenticate my users. That part works fine. I can get tokens to the front ...
user avatar
0 votes
1 answer
24 views

I want to hide a popup based on the client id and using html5 local storage

I'm quite new to all of these but here us my problem I have a popup that has a "don't show this again" checkbox. When a user checks this, local storage should save the client id (which is in ...
user avatar
0 votes
1 answer
14 views

Why are the file contents present in the console log but not in the request object?

I cannot understand why the file contents show up successfully in the console.log(data); but when I dd($file);, it's an empty array ([]). I've tried switching $request->file('file'); to $request-&...
user avatar
1 vote
0 answers
12 views

How to create a basic Tooltip in React where you don't actually wrap the anchor element in another DOM element?

Most of the APIs for Tooltips in React I've seen work something like this: <Tooltip title="Hello World"> <span>hover me!</span> </Tooltip> What that ends up ...
user avatar
  • 70.3k
0 votes
1 answer
20 views

React - setting value for all array of objects

I'm creating a simple tracker that has a state checking if the button is either false (not checked) or true (checked). The structure of my data is something like this: const [test, setTest] = useState(...
user avatar
0 votes
1 answer
12 views

How do I get rid of lag while using transform on scroll event?

So I'm trying to add a smooth scrolling effect for a site that I'm working on. Here is the link to the fiddle of the problem I'm trying to solve. What I'm doing here is watching the scroll event and ...
user avatar
0 votes
0 answers
8 views

Using threeJS and trackballControls with VueJS

This is a project where ThreeJS is used in a Vue project Three.js with Vue I tried to update Three-trackballControls dependency but i keep getting this error because of this.controls.update() method ...
user avatar
0 votes
1 answer
13 views

showing an alert box from server side to client side in express js, react js

I am making a CRUD application, which is working perfectly fine. Now I am trying to show it to the front end that either the user input FirstName already exists or not. Right now I can print the ...
user avatar
0 votes
1 answer
15 views

Does bootstrap.min.JS conflict with chart.min,js?

I am creating an admin page for customer support and I included a fancy chart to display some info on the home page. That went well but when I added tab panes to the page and reloaded it, the chart ...
user avatar
  • 1
-2 votes
0 answers
16 views

DISCORD.JS Anti Spam System (automod)

I want to do an anti spam system with database, but when I use db it don't warn it and when I don't use db, it warn me, do you know why ? The anti spam system will delete all messages spammed. I do a ...
user avatar
  • 1
-2 votes
1 answer
14 views

Data should be a "String", "Array of arrays" OR "Array of objects" when trying to create csv file

I am trying to download csv file of table entries. But every time I try to follow the steps to download the data and export them to CSV format I get this error: Data should be a "String", &...
user avatar
-1 votes
0 answers
23 views

Make changes to duplicate of JSON object in array without affecting original element [duplicate]

I'm working on an application which consists of creating different scenes. Each scene is saved in JSON with attributes such as background image etc. Like this: [ { "sceneId": 0, ...
user avatar
  • 1,143

15 30 50 per page
1
2 3 4 5
159349