2,521,762 questions
Score of 0
1 answer
13 views
Getting Uncaught TypeError: Cannot read properties of undefined (reading 'startTime')
I’m getting the following error in my JavaScript application:
Uncaught TypeError: Cannot read properties of undefined (reading 'startTime')
The problem is that I cannot find startTime anywhere in my ...
Score of -6
0 answers
87 views
jQuery only targets hard coded element IDs not ones in arrays [closed]
Redoing my jQuery code and left a bit confused as expected jQuery I have a web page that has to be modified after it is loaded. Using jQuery to add extra CSS classes to elements according to their ID'...
Score of -1
0 answers
90 views
Why is my stored data in my TamperMonkey giving unexpected values?
I wrote a userscript in TamperMonkey to track data for the game Cheat! on neopets.com. Basically what I'm trying to do is keep track of a stack of cards, represented by an array of objects. I'm using ...
Score of 0
1 answer
94 views
Compiling and parsing After Effects JavaScript code
I am asking this simply to know if it is possible to write all the standard functions and operations in After Effects using JavaScript and execute them—specifically, whether tasks usually performed ...
Score of -1
2 answers
108 views
Is there any legitimate use case for JavaScript encodeURI()? [duplicate]
Please don't direct me to the millions of existing posts explaining the difference between encodeURI and encodeURIComponent. I understand exactly what both functions do.
Existing sources say that you ...
Score of -1
1 answer
52 views
The React state returns null when console logging [duplicate]
This is a react dictionary project which should return meaning of the word. I have stored the response inside react state named setData. When i console log data it returns null.
import { useState } ...
Score of -2
3 answers
132 views
ReactJS (19.2) Server "LEFT JOIN" get all Results from 2. Table in first Query?
I write a Picture Site with NodeJS and ReactJS. I have 2 Nodes. First Server, second Client. On the server, I retrieve the information from the database via the client. Lately, I’ve been having a bit ...
Score of -7
0 answers
86 views
Print character that appear more then Once? [duplicate]
I just start javascript couple of days ago and i am encountering an logical error:
let text = 'hii my name is javascript and i am programming langauge which make website interactive';
let ...
Score of 0
0 answers
81 views
About sprite-flex-js issues [closed]
I'm a beginner of sprite-flex-js (Apache Royale). Right now the issue I meet is: FlashDevelop IDE has recognized a thirdpart class Stats, but when building it, the compiler shows a error: Call to a ...
Score of 0
0 answers
155 views
Rendering problem on Apple MacBook M4 Pro only? [closed]
It would be great if anyone could help confirm this error, which I so far have only seen on my Macbook M4 Pro. Is it just on my laptop or can others confirm it, too?
Problem illustration: Black areas ...
Score of 2
2 answers
128 views
React client doesn't catch the socket.on() signal from the server using setInterval
So I'm building a desktop game using electron and react currently. Now, on my server I have a code that basically does 2 things when the start game button on the client is pressed
start the game for ...
Score of 1
1 answer
204 views
Laravel optional route parameter not reaching the function when Axios sends an empty value
I have a Laravel route with an optional {barcode?} parameter. I want the barcodeSearch() controller method to be called even when the user clicks the search button without entering a barcode.
Route
...
Score of 0
1 answer
169 views
string() function doesn't work in document.evaluate
document.evaluate("string(//@id)", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null)
Using JavaScript, the above snippet throws a TypeError even though string() is a real XPath function. ...
Score of -5
0 answers
122 views
Pass Websocket from server side to client side [closed]
I want to create a new connection within Node separate from the JavaScript client and return it to the client, something like this:
Server-side Node:
serverWs.on('message', (message) => {
let ...
Score of 1
3 answers
216 views
Get the playPause function to switch icons in the browser
I'm using fontawesome and all the icons show up just fine but the playPause function won't switch between the two icons, I have the HTML set up like this,
// mplayer.js
let progress = document....