2,524,108 questions
0
votes
0
answers
40
views
Firefox Web Extensions: adding datepicker input to popup?
I am trying to add a builtin datepicker (i.e. <input type="date">) to a Mozilla web extension (which is based on html/css/js) but the calendar does not popup.
The code below (stripped ...
-2
votes
0
answers
32
views
Dynamically Generate Blog Post Hyperlink Titles Based on User Clicking Hyperlink
The bottom of my blog's sidebar shows hyperlink titles of the last few posts (from newest to oldest).
I wanted readers to be able to view a larger number of hyperlink post titles on a new Archive page ...
-2
votes
1
answer
42
views
How to import pixi.js without Vite or any other bundler
I'm trying to run a page with Pixi.js code in it in a Node environment, but I'm getting this message.
Source map error: Error: request failed with status 404 Stack in the worker:networkRequest@...
Advice
0
votes
0
replies
46
views
Tauri which you can build native apps for desktop & phone with one code base
I have built all my apps using JavaScript, and for desktop, I have always loved to use Electron.js.
But a while a go i've heard Tauri for the first time!
Its features & powerful full-cross-...
-2
votes
1
answer
60
views
Why does async/await not guarantee execution order when multiple calls are triggered externally?
I’m working with an async function like this:
async function doWork(id) {
console.log("Start", id);
await new Promise(res => setTimeout(res, 1000));
console.log("End", id);...
-1
votes
0
answers
40
views
Adding Multiple Guests to Google Calendar Event via Apps Script and Google Calendar API
I'm inserting or updating events from a Google sheet with the guests' names in one column and their email addresses in another column. For events with multiple guests, the emails and names are ...
-3
votes
0
answers
35
views
Prisma throws "No database host or connection string was set" despite environment variables being configured
I'm getting the following error on my Next.js app (deployed on Vercel) when navigating to the "Add Your Store" page, which triggers a database operation via Prisma:
```
No database host or ...
-6
votes
0
answers
31
views
I need to add a unique user functionality in my chatroom app, how can I do it? [closed]
I have written a logic for userValidation here it is:
the chatroom does not have any database.
using socket.io
import { users } from './users';
function validateUser(user) {
for (let i = 0; i &...
Advice
1
vote
0
replies
40
views
Embedding Javascript into R Shiny Conductor Tour
This posting is intended to give other users an example of how to use javascript within a Conductor tour within a Shiny app. At the time of writing, the vignette for the Conductor package only says ...
Best practices
0
votes
0
replies
22
views
How to prevent re-processing when reading pending entries (ID 0) in Redis stream using XREADGROUP?
I am using Redis Streams with Consumer Groups. I have a consumer running a loop that fetches messages from the Pending Entries List (PEL) using ID 0 before it attempts to read new messages.
However, ...
-4
votes
0
answers
39
views
arr.reduce method return accumulator the first argument. but why last value returned [duplicate]
arr.reduce method return the accumulator which is the first argument. So why the last value of array is return in my code.
The problem which I was trying to solve is
Correct solution:
function ...
-3
votes
1
answer
64
views
How to use of thunks with useContext/history/location in React/Redux [closed]
I am currently working on an application that has a large amount of duplicated logic shared across its components. One of the primary reasons for this is the components are using a Context component ...
-5
votes
0
answers
53
views
Pocketbase: Superadmin Permissions (privacy) [closed]
I need help with my pocketbase backend.
I have a js frontend and the js Pocketbase backend.
Me and my Superadmins in the Pocketbase should see the entries if the owner of the entry (relation to users ...
0
votes
0
answers
42
views
Motion: How to combine parent staggerChildren with individual animations when dynamically adding items?
I am building a dynamic list in React with Framer Motion. I want to achieve two goals:
When the list initially mounts, the items should animate in sequentially using the parent's staggerChildren.
...
Best practices
1
vote
3
replies
46
views
Are there security issues with using responseXML property of XMLHttpRequest?
I am writing JavaScript code that runs in a web browser, retrieves a user-supplied XML file, and gets certain information out of it. I know that XML parsing is a potentially dangerous operation if the ...