2,532,843 questions
-1
votes
0
answers
13
views
Docker Failed to load resource: net::ERR_NAME_NOT_RESOLVED error
I'm setting up a multi-container environment using Docker Compose (version: '3.8'). My setup includes:
Percona MySQL Master & Slave for database replication
Backend service (Spring Boot)
Frontend ...
-1
votes
0
answers
17
views
React-grid-layout: How to clone on drag?
in React-grid-layout, Is it possible to "clone" an element, when user keeps "shift" key pressed while dragging it?
I need to provide an easy mechanism to create new elements in the ...
0
votes
0
answers
22
views
React-grid-layout: How to cancel a drop?
Is there a way to "cancel" a change of layout due to an item being dragged to a different location, when using "react-grid-layout"?
I need to do some "validation" and if ...
0
votes
0
answers
24
views
How should you snap an image to a grid via Javascript after it has been rotated with CSS?
I have a 9x6 grid with 80 px squares.
<div class = "grid" style="width: 720px; height:480px; margin: auto; background-color: white;">
<style>
.grid {
...
0
votes
0
answers
13
views
Share Form Fields In Different Forms
I have a login and register form(from react hooks) in my application. I want to reuse common fields for both forms.
Therefore, I have created components like emailField, passwordField etc. Since ...
0
votes
0
answers
10
views
Is there no way to create components dynamically using only Astro?
I’m working on an Astro project where I’m building a classic Pokédex. I have a PokemonCard.astro component that renders a Pokémon's details, and I’m trying to load more Pokémon dynamically when a &...
-1
votes
0
answers
10
views
Using webpack serve and files not auto reloading when there are changes
I am going crazy
Help me Whenever I run webpack serve, and make changes to the HTML files it would not auto-reload. This is my webpack config file:
const path = require("path");
const ...
0
votes
0
answers
12
views
How to mock DataTransfer constructor in Jest?
I made a custom hook, useFileListState, that basically encapsulates the logic to add and remove files from a FileList.
To remove (or add) it, it uses the DataTransfer constructor, as well as the ...
-1
votes
0
answers
23
views
Autoselect Option 1 on multiple SELECT Form Fields? [duplicate]
I have a short script to automatically default a SELECT form field to its first option. This works great although when adding a second SELECT within the same form it ignores it. Obviously I need this ...
0
votes
0
answers
9
views
React native app stops firebase listener after loggin BUNDLE ./index.js
I am working on a React Native app that uses Firebase Realtime Database and FCM notifications. I set up a listener to listen for changes in the Firebase database and trigger local notifications using ...
0
votes
0
answers
9
views
Tabulator dataTree updateData() _children elements
I am taking advantage of Tabulator's dataTree module to represent data organized into categories. I have the ability to manipulate the state of the _children nested data and would like to convey this ...
0
votes
0
answers
15
views
Running Typescript Unit Tests with Jest and Bazel?
If trying to see if I also want to run a repositories Typescript tests with Bazel and I'm going through this tutorial on how to do it. And it says the jest_test rule can be configured like this:
...
1
vote
1
answer
11
views
MongoServerError: 'timestamp_property' must be present and contain a valid BSON UTC datetime value
I'm encountering the following error when trying to post sensor data to my API:
MongoServerError: 'timestamp_property' must be present and contain a valid BSON UTC datetime value.
Here's the code for ...
0
votes
0
answers
22
views
I tried to change the CSS of an Ionic element
I'm trying to learn Ionic with Vue.js.
I want to do something simple: just change the background color, but it doesn't work.
I don't found good documentation explaining how can i do that
<template&...
0
votes
0
answers
29
views
How to pass the ViewBag from the view to external Javascript code
I have this method that passes a List if the error occurs:
if (userList.Find(U => U.Id == userViewModel.Id) != null)
{
_response.ApiErrorList = new List<string> { "User already exist&...
0
votes
0
answers
40
views
Using ajax with php://output [duplicate]
I'm using Phpspreadsheet to generate excel file with data. I want my file to be downloaded immediately after creation by user. It is easy to obtain using:
$writer = new Xlsx($spreadsheet);
$writer->...
0
votes
1
answer
25
views
Ninja Form wordpress plugin reload page after submit
I use ninja forms plugin in wordpress. I submit the form successfully, get a message about it. Everything fine. But if after it I fill the form again and submit, the page is reloaded, but before that ...
-6
votes
0
answers
37
views
When performing validation (on server) of user submitted form, pass the class(es) along with name and value of <input> element
A javascript component ensures users can only input numbers into numeric input fields. It attaches itself to all inputs with "numeric" class, like below:
<input name="foo" class=...
0
votes
0
answers
7
views
How to list docs in an Automerge repo?
I have instantiated a repo:
const repo = new Repo({
network: [
new BroadcastChannelNetworkAdapter(),
new BrowserWebSocketClientAdapter("ws://localhost:3030"),
],
storage: new ...
-5
votes
0
answers
31
views
i get 403 forbidden in postman and the console when trying to add or remove products, i tried everything but still cant make it work [closed]
function isAdmin(req, res, next) {
console.log('Session:', req.session);
if (req.session.isAdmin) {
next();
} else {
res.status(403).json({ message: 'Forbidden' });
}
}...
0
votes
0
answers
11
views
Calling the toolController.deactiveTool method in a forge viewer custom tool is not triggering on windows while it works on mac
I am trying to create a custom forge viewer tool that only enables the box-selection extension while the shift key is pressed down. This works as expected on Mac devices but on Windows it enables the ...
-4
votes
0
answers
44
views
I need to write a promise that returns error when the data is not number [closed]
I'm learning a lesson about Callbacks and Promises and this is the exercise.
I'm trying to create a promise that performs the following operations:
rejects when data received is not a number,
...
0
votes
1
answer
25
views
How to apply the minimal theme in sweetalert2?
I am trying to apply minimal theme of sweetalert2. But it is not working. This I put in the head -
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.min.css" ...
-1
votes
0
answers
16
views
Supabase Authentication Email and Password Error saying email_not_confirmed [closed]
I am signing up with email and password function as below:-
async function SignUp(email: string, password: string, name: string) {
try {
const { data, error } = await supabase....
-1
votes
1
answer
39
views
Angular mat-chip, use space and tab to enter a new input
Actually, in a mat-chip, we need to press Enter to be able to add a new element in the list.
I'd like to have the space, comma and tab to have the same effect.
How would this be doable?
Here's the ...
0
votes
0
answers
6
views
BullMQ Job Not Removed from Queue After Calling job.remove()
I’m prototyping a project using BullMQ and Redis, and so far, everything seems to be working fine. Jobs are being added to the queue successfully. However, when I process the jobs using a worker and ...
6
votes
2
answers
71
views
Loop inside setInterval does not iterate over the second interation
I have a useTypewriter hook that seems to skip the second iteration since the i never logs as 1. Why is the code not working? The output should be howdy, not hwdy.
Here is the full code:
const { ...
-2
votes
0
answers
31
views
Show hidden content in Chrome with javascript [closed]
I was wondering if there is any possible way to show hidden content/values in chrome and how I can show it?
<input type="hidden" id="ct_bot_detector_event_token_5020" name="...
-1
votes
4
answers
66
views
How we can import the new changes in json file made by previous test?
I have a spec file where I have to loop through the it block to create orders, and storing them in a Json object of array, Then in same spec file I have to validate the orders create in previous it ...
-3
votes
0
answers
47
views
How to get the android browser inner dimensions width and height excluding browser title bar, toolbar and tabs [duplicate]
I'm trying to get Javascipt to get the android browser inner dimensions width and height excluding browser title bar, toolbar and tabs.
I have already used the current answer from 2 questions here and ...
-1
votes
2
answers
48
views
Unable to render the image on canvas
I am trying to create a simple game using JavaScript. I do JavaScript as a hobby, and I did not major in computer. I used ChatGPT's help to write my code, so it might be unnecessarily large and messy—...
0
votes
0
answers
49
views
Load external resources only on button click
I would like to have a "Load More" button that displays all the content of a div tag when clicked. It's important that all external resources within this content (such as images, JavaScripts,...
2
votes
2
answers
41
views
How to avoid re-render in Redux based on the outputs of .filter()?
I have a simple scenario in which I want to access my store.entities, but only those which are active. I understand the following is bad because a new reference is given each time:
const ...
-1
votes
0
answers
17
views
Is it possible to customize the date picker in Ninja Forms so that one field is dependent on another field?
I have two date fields in Ninja Forms. I've already blocked past dates and set it so that the user can only choose a date that is at least three working days in the future. Now, I want to make one ...
-1
votes
0
answers
9
views
How to Dynamically Trigger __doPostBack Using UniqueID in WebForms with JavaScript? [duplicate]
I'm working with ASP.NET WebForms and need to trigger a postback dynamically after a successful reCAPTCHA validation.
function checkCaptcha(buttonId) {
console.log("Button UniqueID:", ...
-6
votes
1
answer
53
views
javascrip indexOf not working with underscore= [closed]
As far as I understand, the indexOf method uses strict equality which in my mind means that if I have an object
animal = {id: 1, name: 'bison'}
the statement
animal.name === 'bison'
would be true ...
0
votes
0
answers
20
views
OneTrust Consent groups not working as expected through subdomains
Needs: I need to avoid the banner reappearing (if the user has already accepted) when navigating from site A to B and vice versa, using OneTrust.
Setup:
Non-authenticated side, it's two public sites.
...
1
vote
0
answers
19
views
Nx release command doesn't automatically push the release commit and tags
I have the following minimalistic nx.json config:
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"targetDefaults": {
"build": {
"...
1
vote
0
answers
36
views
Catching reload events to show custom modal
Sorry for the lengthy post but this needs some context.
Context
I'm building an app for academic papers publishing. The stack is Laravel + vanilla JS and I use Etherpad to edit the papers. It is ...
0
votes
1
answer
14
views
React-query v5 query data contains an empty object when using persistence
I've noticed that many users of my app get unexpected runtime errors because react-query (v5.64.2) query data contains an empty object (and my backend never returns empty objects). I've also noticed ...
0
votes
0
answers
38
views
Use FullCalendar eventClick info in SweetAlert2 JSP condition
I'm using FullCalendar API for a calendar page in my website that's supposed to track a maintenance schedule of equipment. I also used SweetAlert2 as the popup modal for when an eventClick happens.
...
0
votes
0
answers
23
views
flyTo function not working with dynamic position
I'm working on a react project, where I display some markers on a leaflet map. I added two buttons on my map. One of them should fly to the position of the selected marker, when I click it. Therefor I ...
0
votes
2
answers
30
views
NextJS 15 loading.tsx not showing
I am learning NextJS 15 and I have a very simple app just to learn the use of loading.tsx pages, I have a loading.tsx page next to a page.tsx in the src/app folder (as shown in the image below)
File ...
-5
votes
0
answers
51
views
Converting a static webpage to dynamic, [closed]
I have created a static webpage using HTML, CSS, and Bootstrap, and now I want to make it dynamic by adding filter functionality.
I have a section where clicking on a filter option should display only ...
0
votes
0
answers
15
views
How to write data to an NFC card using Omnikey 5422 in a web application (JavaScript)?
I am developing a web application that interacts with an Omnikey 5422 NFC reader. I need help with writing data to an NFC card using JavaScript. I understand that the Omnikey 5422 supports ...
0
votes
0
answers
33
views
How to Integrate Plivo SDK in Laravel?
I am integrating Plivo in Laravel to create a "click to call" function on my web app page. I want to provide features such as call, hangup, mute, and unmute on this page. I also want a ...
-3
votes
0
answers
24
views
I can not implement Node program in Browser (WebRTC Peer reference is not defined) [closed]
I made some WebRTC server, https://github.com/AAlex-11/WebRTCpeer/blob/main/server.js, this is now not full code, start only. Goal of this server is testing my Android application based on WebRTC.
...
0
votes
0
answers
23
views
Can't seem to preserve inline elements such as <span> , with custom blot
I've created a customblot, to handle span conversion but for some reason any text after <span> is being treated as a span too and causing the following:
Uncaught s: [Parchment] Unable to create ...
-3
votes
0
answers
33
views
Filter within Nested Array of objects [duplicate]
I have got an array of objects and inside that array of objects there is one more array of objects. I wanted to filter the array according to the genre as the genres object is inside the movielist ...
-3
votes
0
answers
33
views
Is this a safe and proper way of creating an HTML element with javascript? [duplicate]
I'm trying to create a comment section loaded from an AJAX call.
Is this a correct way to do it?
<div>
<h7>`+ comment.postedby + `</h7>
<h7>`+ comment....