All Questions
Tagged with javascript not reactjs
2,318,849 questions
0
votes
0
answers
30
views
WebXR + Unity build failing to render on Quest Browser after working previously
I am building a VR web app on Unity and using the WebGL platform with the WebXR export. I am not doing much special at the moment except using the WebGLTemplate HTML file to request an XR session when ...
2
votes
1
answer
51
views
How to sync UI state between a page and a fetched sidebar component in Vanilla JS?
I am building a multi-page application using Vanilla JavaScript (no frameworks). To avoid code duplication, I fetch a shared sidebar (sidebar.html) and inject it into a placeholder on every page (e.g.,...
-1
votes
0
answers
29
views
Enumeration warning when using VS Code debug console in a Vue project
I have a minimal Vue 3 application created using npm create vue@latest. The application contains a simple App.vue file with the following contents:
<script>
export default {
data: function(...
-4
votes
0
answers
55
views
Check for an empty string from a multiline block [closed]
I need to check for an empty string, however the regex doesn't seem to be doing what I think it should.
var ele = document.getElementById('theId');
console.log("Length of ele is " + ele.innerText....
-1
votes
0
answers
38
views
Why is my app applying a BiquadFilter without being prompted? [closed]
Im using JavaScript Web audio API.
The good news is that the filter I created works as expected.
The bad news is that my app applies the filter without being prompted.
The flow is like this: user ...
-3
votes
0
answers
83
views
After logging in, the user is not updated in the UI until a reload
I have a separate backend I'm building, and I basically have the main auth endpoints. I was making a frontend for it with Next.
The thing is, there's a problem with after I login. When I login, it ...
-4
votes
0
answers
33
views
Profile page not updating in real-time (sidebar name + active highlight) and avatar not showing after upload in ReclaimX [closed]
I am working on ReclaimX, a full-stack campus lost & found platform (Final Year Project).
GitHub: https://github.com/SniperRavan/RECLAIMX
Problem
On the Profile page (pages/profile.html), after ...
Advice
0
votes
3
replies
61
views
Object Look-up in JS Doesn't Work with WebGL2RenderingContext API Constants
For debug purposes in JS I decided to create a set of integer->string look-up tables which would allow me to re-interpret WebGL system constants back with their symbolic names. I used the "...
Tooling
1
vote
1
replies
103
views
Why does npm install most of the time corrupted?
When I run npm install, most of the time it is corrupted, missing dependencies, and critical files. Is there any way to bypass this and install without errors?
Best practices
1
vote
1
replies
29
views
EMP created in service now on ADA issue , but the main problem seeming to be the version of my angular
We are using angular version 15. As part of our internal UI modules for styling from the client side itself, according to those versions of those modules there was an ADA issue.
The ADA issue is about ...
Advice
0
votes
5
replies
72
views
Detect when list of divs "would be" overflowing
I'm trying to find out whether a horizontal line of divs exceeds the width of their container. If they do, they should be displayed as a dropdown, as they are not allowed to overflow (and the divs ...
0
votes
0
answers
47
views
Randomize Qualtrics Question Order Within Block Based on Embedded Data
I am programming a qualtrics survey. I have multiple blocks and I want to randomize the order of questions within the block once, so that the order is maintained throughout the whole survey.
The issue ...
-1
votes
1
answer
116
views
Can a function be executed within the variable scope of another function?
Is it possible in JavaScript to pass a function to a function and execute it within the variable scope of the receiving function? Something like Tool Command Language's uplevel?
In this example, can ...
Best practices
1
vote
15
replies
113
views
Is there a better way to do this clunky function (maps, arrays, sets or none of them)?
For context: I'm new to coding and still learning.
What I want:
I recently started to play around with JavaScript, and was trying to make this function as "unrepetitive" as possible. I'd ...
0
votes
0
answers
67
views
jquery datatable slow client-side searching for 10,000 rows in DataTables 1.10.15
I have web application using .net 8.0 mvc and jquery data table. ajax calling from the client side and mvc returns json data. Data display and all features(pagination,soreing, export etc.) are working ...