2,524,882 questions
0
votes
1
answer
28
views
FirebaseError: Firebase: Error (auth/argument-error) persists in development mode, even after Identity Platform upgrade
I've been battling a persistent FirebaseError: Firebase: Error (auth/argument-error) for days while trying to implement Firebase Phone Authentication in my Next.js/React application. This occurs ...
-6
votes
0
answers
27
views
How can I store data in a MySQL database instead of localStorage in a web app generated with Google AI Studio? [closed]
I created a small web management application using Google AI Studio.
The application currently saves all data in the browser using localStorage.
The problem is that the data only exists on the client ...
1
vote
0
answers
24
views
Fixing issues with scaling numeric (BigInt) data in Echarts
Good morning. I'm creating a graph for my website that should display BigInt numbers in logarithmic and mathematically exact graph types. Under my previous question, from the user @kikon, I received ...
Advice
0
votes
13
replies
82
views
Is this JS script vulnerable to XSS?
Okay so i have a JS function that take my server response that would be multiple html Elements.
I add all of those elements with innerHTML and i know it can cause XSS attack but i struggle to ...
Best practices
0
votes
2
replies
46
views
How to do a proper error handling in typescript?
This is my first attempt at implementing proper error handling in my project. I realized that as my project grows in complexity, the lack of structured error handling makes development much more ...
Advice
0
votes
1
replies
70
views
How can I create a responsive navigation menu using HTML, CSS, and JavaScript?
I am building a simple website and I want to create a responsive navigation menu that works on both desktop and mobile devices. On larger screens, the navigation links should appear horizontally, but ...
Best practices
0
votes
3
replies
58
views
HTML: set onclick event handler in external script file before user clicks it?
I am removing inline JS from HTML files due to CSP in an existing project, so this old code:
<input value="Click here" type="submit" name="submitA" onclick="...
-1
votes
0
answers
31
views
How to use selectNodeById with a treeview library?
I have been trying to work out how to use Quercus.js, which is a JS treeview library.
I am stuck on something and wondered if I could ask for advice please?
I have this example tree code, on Codepen.
...
1
vote
3
answers
74
views
Using a regex lookahead after spaces
I am trying to write a simple script to process JSON5 — the idea is to convert to standard JSON and let JSON.parse() do the rest. I’m using regular expressions to do the conversion.
One part is to ...
-4
votes
1
answer
110
views
How to use CSS or HTML to specify a URL for use by a JavaScript script?
For my Neocities website, I have a Javascript script load up the header, footer, and the sidebars. I want to change the sidebars depending on the current HTML page that the user is on. Here is the ...
Best practices
0
votes
1
replies
53
views
What are best practices for unit testing with Jest in JavaScript?
I'm learning Jest and want to make sure I'm building good habits from the start. I've read the official docs but they don't really cover what's considered good practice in real projects. Specifically ...
-3
votes
0
answers
52
views
Using import.meta.glob() to import from dynamic folder URL [closed]
I have a product images folder containing sub-folders where the name of the sub-folder is equal to my product Id.
Using import.meta.glob() requires a static directory, but had tried to get around this ...
Advice
0
votes
1
replies
264
views
Do you support The Imagine project?
The Imagine project is looking for partners to promote The Second World Digital Strike on Feb 24 2027
We need 51% of humanity to join 2nd strike then wars stop
We need 51% of humanity to join 2nd ...
0
votes
2
answers
85
views
Firefox inserts random whitespace on position: sticky
I have an issue that occurs only in Firefox.
On my page there is a header and a product list. The header list has some sticky components to keep it in view on the page, as the user scrolls through the ...
0
votes
1
answer
42
views
Megajs 0.17.2 root property broken
Im using megaJS 0.17.2 in my nodeJS program, but it seems like the root object is not being added to the storage (megaDB) object as a property, as seen in the following code clip of my initMega() ...