Skip to main content

Question list filters

Filter by
Sorted by
Tagged with
Score of -6
0 answers
84 views

Does it bother you that print commands don't have any graphing? Text seems very limited. If you were writing a visual representation library you'll get stuck in a whole swamp
Score of -2
0 answers
52 views

I was showing a list of person with Table from Shadcn UI. My goal is to show a Dialog form with the info of the person indicated in the row. So I iterated the rows and added an onclick trigger that ...
Score of 0
0 answers
72 views

Here's what my code looks like at the moment (playground): <script setup> import { ref } from 'vue' const items = ref([]) const cur = ref(0) add() add() add() function add() { items.value....
Score of 1
0 answers
76 views

I would like to build a progress bar for a multipage REDCap survey that uses javascript to draw the current page number and total number of pages values so I can calculate the percent for each page ...
Score of 4
4 answers
124 views

I'm a bit lost in handling JavaScript objects. I understand how to access instance and class variables in other languages and was doing fine in JavaScript with my own objects but I'm a bit puzzled ...
Score of -1
0 answers
58 views

async function calculateDistance(origin, destination) { const apiKey = 'MY_API_KEY'; const encodedOrigin = encodeURIComponent(origin); const encodedDestination = encodeURIComponent(destination); ...
Score of -9
1 answer
150 views

I'm just learning about functions and seems like the whole idea of expressions via my variables is a façade. I'm writing a quadratic equation solver and can't seem to make my root1 and root2 variable ...
Score of 2
1 answer
101 views

I am building a React application that fetches data from an API when a user opens a page. The problem is that the user can navigate to another page before the API request finishes. When the request ...
Score of 1
0 answers
55 views

I have built an AddressSearch page but the behaviour is not as expected. How does it work? There is a search input field in which user enters the address and Google Maps JS API suggest some options ...
Score of 1
1 answer
85 views

Is JSEvent a macro task or synchronous task? For JSEvent, I mean programmatically dispatched events, e.g., window.click(). This question has stuck with me for a long time. Some told me it was a macro ...
Score of 0
0 answers
73 views

I'm drawing a graph on <canvas> where nodes have fixed logical coordinates (e.g. in a 1100×620 "design space"), and I scale/translate them to fit the actual rendered canvas size, plus ...
Score of -3
0 answers
95 views

I'm building a feature where users can select a container (for example, a navbar) and preview different design styles using Next/Previous buttons. Before applying any changes, I want to save the ...
Score of -4
0 answers
84 views

I have a static website with a page containing roughly 60 cards. Each card has an image, and there are also Bootstrap modals containing additional images. Originally, all of the cards and modals were ...
Score of -6
0 answers
50 views

I'm building a React application where data is fetched from an API when a page loads. When I navigate to another page and then return to the original page, the component mounts again and the API ...
Score of 2
2 answers
156 views

I have a <p> element which is dynamically created using JavaScript when the user presses a button on the site, and I want this element to be horizontally centered, however for whatever reason ...

15 30 50 per page
1
2 3 4 5
168122