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.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
7 views

how do i achieve this type of ui dynamically

my school group was given this type project, its not too sophisticated but we are looking to achieve the same functionality, and we don't even know where to start from. we have chosen reactjs and ...
0 votes
0 answers
7 views

Compare between two objects and display rest of elememts in the object

i am having my data from API somethings like: "data1": { "items": [ { "fields": { "light_voltage": &...
0 votes
0 answers
6 views

is there a way to import all keys inside a package with require?

I would like to know if there is a way to import all elements of a package/file without directly naming them example: //file1 - things.js module.exports = { thing1:{...}, thing2:{...}, thing3:{....
  • 23
0 votes
0 answers
9 views

click event listener on javascript [duplicate]

I have a problem that i cannot resolve. I'm adding a click event listener to a parent container and also to its child. I need to take the info of both clicks but the problem is when the child ...
  • 15
-1 votes
0 answers
11 views

[ react-konva ][ SVG ][Canvas ] Crop a background image layer from a Path?

I have a background image laid on a Konva canvas. One of the layers is a Path that is given shape by a SVG ( arrow icon ). I would like to get the image cropped by the Path mask that is on top of it. ...
  • 1
0 votes
0 answers
13 views

Firefox: What to do when Copy Link doesn't work?

I want to get a URL, but the only way is through "share" buttons. People don't use regular links anymore. When I right-click the Email share button, "Copy Link" does not appear in ...
  • 1,307
0 votes
0 answers
9 views

Ho to load a WASM + js module in angular / typescript?

I have been trying to figure how to load the openjphjs WASM module into an angular typescript project (openjph is a codec for HTJ2K image format). I have very basic and fragmented knowledge of ...
0 votes
0 answers
10 views

How do I get the public IP of an EC2 instance with v3 of the AWS SDK for JavaScript?

I tried the following code but it doesn't seem to work: const { EC2Client, DescribeAddressesCommand } = require('@aws-sdk/client-ec2'); const client = new EC2Client({ region: 'us-west-1', ...
0 votes
0 answers
21 views

React: add is not a function

I am passing down a function from App.js to Home.js to SearchBar.js to SingleEvent.js. When it reaches the component SingleEvent it tells me that the function is no function. In another instance I ...
  • 123
-5 votes
0 answers
17 views

I’m invoking some awesome code skills in JavaScript [closed]

I’m invoking some awesome code skills! I need a method in JavaScript that pass the prop name to the function and if that exists in an object with many nested levels, then return the object, if not ...
0 votes
0 answers
7 views

How to set up onClick functionality with react

So I've been setting up my portfolio, as a jr fullstack web developer. I've ran into a little trouble with react and an onClick link to an external website(my github.) I've got an href where I've ...
0 votes
0 answers
14 views

How to get data from Component to Another Component with useState

I want to get the data in the UserOrderCartPage and move it to the UserOrderPage but the only thing that moves is the state description, everything else is undefined.. How can I get all the data that ...
-1 votes
0 answers
8 views

"$." in javascript code what does it means [duplicate]

I have this in the code, however, I do not understand how it works. Can someone help to give me a direction to go to? So I may explore on it. Also would like to ask what is $. ? What is it referring ...
  • 35
0 votes
1 answer
11 views

Increasing number in number input from checking a box in another?

I'm working on a DnD character creator and am trying to increase certain ability scores based on race. I have a checkbox input next to every race that looks like so: <td> &...
  • 3
0 votes
0 answers
9 views

Ionic toolbar triggers context menu out of viewport when app inside a div

I just created an Ionic 6 app with the following command: $ ionic start happy-meal tabs --type=react My goal is: to have a toolbar with a MENU button at the end that when clicked it opens up a ...
  • 3,417

15 30 50 per page
1
2 3 4 5
161878