Skip to main content
Just browsing Stack Overflow? Help us improve your experience. Sign up for research
Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

How can I properly add an event listener to a series of asynchronous functions in Javascript/JQuery?

I'm struggling with the order of operations with asynchronous functions and event listeners in Javascript. I have a script with a function that fetches a list of publicly-traded companies from an API ...
fitted_sheet's user avatar
0 votes
0 answers
10 views

How can I create zoom functionality for Sankey Networks using networkD3 and htmlwidgets?

As i the title says. I would like to zoom interactively on Sankey networks, as it is for example possible for Force networks. I assume that it would work by adding a htmlwidgets::onRender() call, ...
CZ_8eer's user avatar
  • 45
-2 votes
0 answers
19 views

Is there a way to have a single page change by a link in html? [closed]

I want to have a page called character_template.html and I want this page to change depending on a link clicked earlier on a page called characters.html, but I don't know how. I have looked into sql ...
Zero WULF's user avatar
0 votes
0 answers
10 views

Device information from web browser using navigator.userAgent [closed]

I came across the following thread: Detect if device is ios In my specific use case, I wanted to detect iOS devices on Microsoft Edge. I noticed that the userAgent (alert(window.navigator.userAgent)) ...
prashantbhatt23's user avatar
0 votes
0 answers
21 views

Axios use wrong route

I wanna deploy my project on VPS, but I've stuck with a problem. Axios tries to use 'http://localhost:3000/main', when in code I indicated another route. I tried to change baseURL, but it didn't help, ...
PABLO _6612's user avatar
0 votes
0 answers
12 views

Next Auth v5 logout if any API is throwing 401 error

I am using Next 14 and Next Auth v5 for authentication using credentials provider. I want to handle a case where if an API throws a 401 error from the backend, then logout the user in the background ...
H.Husain's user avatar
  • 443
0 votes
0 answers
6 views

How can I pass a token from my app to a third party app

Im trying to build an app that will run on a third party clients' apps, injected by a script. This app should communicate with our BE, but I don't know what is the best approach to pass token's data ...
Eden Binyamin's user avatar
1 vote
0 answers
16 views

How could I check if the URL/route in the browser is related to the path mask?

My goal is to try to create an ID rule that allows you to check in the HTML where it is within a category (id), it must mark the menu, this id is replicated for several different routes, but it has to ...
Ivan Ferrer's user avatar
0 votes
0 answers
17 views

VS code extension that uses OpenAI API doens't work

I want to write a simple VS Code extension that calls OpenAI API and tells the user the day in Danish. I cannot find the extension when searching for it in the Extension Development Host window (after ...
Maayan L's user avatar
0 votes
0 answers
16 views

3d Model Positioning in ThreeJS Play code.io:

How do I make my model so that when a user clicks and drags they can see the model from different positions? (Like when you are editing a 3D model). I am new to threeJS. The model and scene are also ...
bingandabong's user avatar
0 votes
0 answers
7 views

Cache problems in a vercel implementation with next13

I am generating some xml files with the rss library and using the getServerSideProps in next13, what happens I have established this rule res.setHeader("Cache-Control", "public, s-...
Helio Javier Soto Ar�valo's user avatar
-1 votes
0 answers
17 views

Protect aginst editing Code in Browser on Website

I am fairly new to programming, and i startet to make a Website to practise, after a while i have noticed that my login page can easily be manipulated my simply changing my JS Code in the browser. I ...
user28736645's user avatar
-1 votes
0 answers
7 views

Issue with Replicate.ai API Returning ReadableStream Instead of Image URL in Next.js

I'm working on a Next.js project that generates images using the Replicate.ai API. Although images are generated correctly on the Replicate.ai dashboard, the API response in my Next.js serverless ...
ShyamBabu Jayswal's user avatar
0 votes
0 answers
8 views

How to access the data from a POST in Nextjs

I am trying to access my body from the request but for some reason these are both undeinfed. Here is the payload: { "timeEntries": [], "violations":[] } export const POST = ...
Jamie Hutber's user avatar
-3 votes
0 answers
17 views

Javascript to find time between two dates [duplicate]

I've come up empth on searches. Looking for javascript to find the number of year, months, and days from a known date to whateve the current year, month, and day is. For examle, how many years, months,...
DMcIn's user avatar
  • 1
0 votes
0 answers
13 views

Firebase verifyPhoneNumber Uncaught (in promise) Timeout

I am using firebase authentication with SMS multi-factor auth in my NextJS app. I followed the (documentation) and was able to implement it. However, after completing a successful login and after a ...
Quickstealth's user avatar
0 votes
0 answers
8 views

How can I prevent custom macros in mathlife from losing their arguments?

I'm trying to use mathlife with "atomic" elements that are generated from the environment. One way to get atomic elements is by defining a macro. So, a defined a macro as prop: { ...
Jan Wielemaker's user avatar
0 votes
0 answers
15 views

About CSSStyleDeclaration objects

I've been exploring the behavior of the style property on DOM elements, specifically element.style, which is an instance of CSSStyleDeclaration. I understand that element.style allows access to inline ...
Unknown developer's user avatar
0 votes
1 answer
9 views

How to create a sankey highchart graph with a grouping node

I have some flights data which looks like this: [{"from":"NY", "to":"Oslo", "company": "Norwegian", "flights":3}, {"from"...
siggemannen's user avatar
  • 8,960
0 votes
0 answers
7 views

Nice way to load data in-time with Svelte

In Svelte, we have a very nice and beautiful way to load some data in time and render it using @const: <script> let a = false; </script> <button on:click={() => a = !a}></...
Drun555's user avatar
  • 31
0 votes
0 answers
12 views

Non-stateful media query in CSS?

I'm trying to hide and reveal a sidebar based on the client screen width using two respective animations (hide-sidebar and reveal-sidebar). To achieve this functionality I'm employing a media query: @...
Timur F's user avatar
0 votes
0 answers
8 views

Preserving html attributes when initializing quill.js

How do I retain custom class names (added via custom handler) when initializing quill instance (especially in react-quill)? Problem: I need to create a custom toolbar button in quill editor to create ...
Dmitry Oleinik's user avatar
0 votes
1 answer
18 views

How to break out of multiple nested loops in JavaScript? [duplicate]

I’m working on a JavaScript program that involves multiple nested loops, and I need a way to break out of all the loops when a specific condition is met. Here’s a simplified example of what I’m trying ...
Raihan Hossain's user avatar
0 votes
0 answers
8 views

Tldraw Collaboration: Eraser Changes Not Syncing Across Users Using Socketio

I’m building a collaborative drawing application using Tldraw and socket.io. The goal is to allow multiple users to draw and erase shapes, and their changes should sync in real time. While drawing ...
dgdev's user avatar
  • 25
-1 votes
0 answers
23 views

How to read JSON object in Angular v18 template file with unknown key

I am trying to read a JSON object containing list of unknown key in my template file (HTML) using Angular v18. But getting error stating Type 'JSON' is not assignable to Record<string, string | ((...
Chandan Prakash Sharma's user avatar
0 votes
0 answers
10 views

Error Connecting to Elasticsearch on Render Deployment: getaddrinfo ENOTFOUND elasticsearch

I have a Node.js application that works perfectly when running locally with docker-compose up --build. It connects to both MongoDB and Elasticsearch without any issues. However, when I deploy the ...
Abhishek Dukare's user avatar
0 votes
0 answers
19 views

dynamic import of a module

I have a ES6-modules project, where different databases can be used dependig on the context. For that I created a module (database-provider.js) that handles this import dynamically. standalone this ...
CRoNiC's user avatar
  • 409
0 votes
0 answers
14 views

Cannot upload file with ajax and asp.net webservice in shared hosting

I have created an application to upload files to a folder using ajax request and asp.net webservice.asmx. It's working fine in my local system with IIS. But when I hosted it in my Mochahost shared ...
Codinoz Technologies's user avatar
-1 votes
1 answer
49 views

How to make a date input match a certain day of the week?

I have an HTML script with date inputs for each day of the week (Sunday-Saturday). I'd like to validate the inputs so that the user can only select dates which match that day of the week. For example, ...
Paul's user avatar
  • 11
0 votes
0 answers
13 views

Getting error, Unknown option when compiling webpacks

Im trying to build my react code with webpacks and babel. I downloaded a project from Github that combined React with Scala and AKKA (this was my ultimate goal). After hours of updating packages and ...
Kris Rice's user avatar
  • 605
0 votes
1 answer
17 views

How can I format Pino logger output in the browser console?

I am using pino with next.js. I have the following config: import pino from "pino" import { Logger } from "pino" const baseLogger: Logger = pino({ level: process.env....
Undistraction's user avatar
0 votes
0 answers
8 views

React Mui DatePicker - cs localisation

I'm trying to use DatePicker in Czech language. I used this code import * as React from 'react'; import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; import { LocalizationProvider } from '@...
Nitram Nekonečn�'s user avatar
0 votes
0 answers
8 views

Adding a custom item to a react-google-places-autocomplete?

I was wondering if it's possible to add a custom item into a GooglePlacesAutocomplete? I can't seem to get it to work. Addresses work wonderfully, but I can't add my own item, preferably to be the ...
Osman Remzi's user avatar
0 votes
0 answers
14 views

Using JSON Schema Dependencies for Dynamic Dropdowns in JSON Forms

I'm using JSON Forms to render a field mapping view where users can map/translate a chosen field and its enumeration values to values in another system. The issue is that based on the input of field, ...
Magnus's user avatar
  • 415
-3 votes
0 answers
26 views

Inserting id in localStorage returns null [closed]

i've been making a cart for my e commerce page, now i need to put my cart objects in localStorage, i manage that via array, then that array i insert in localStorage The array is composed of an id ...
mini1012's user avatar
-1 votes
0 answers
16 views

I am trying to get the value of a JWT token saved as a cookie in my browser, but I am getting undefined in the log statement

Here is the function I am setting the cookies in login: async (req, res) => { try { res.clearCookie('authtoken') const { email, password } = req.body; ...
confusedquail254's user avatar
0 votes
0 answers
13 views

Puppeteer PDF page margin that allows overflow

I want to add spacing (padding/margin or however it is possible) to all dynamic pages. Also I want to be able sometimes to ignore that spacing, for some sections, ideally with negative margins. ...
Oki's user avatar
  • 3,165
-3 votes
0 answers
25 views

Scraping and downloading images from a public folder (Dropbox, Drive etc) [closed]

I am building a feature in my app where users can paste a public folder link (from services like Dropbox, OneDrive, or Google Drive), view the images in the folder, and select which ones to download ...
Scripter9700's user avatar
0 votes
0 answers
15 views

React Material UI - Navbar Items Positioning Issue

I am facing a issue while positioning the menu items in my Navbar component when screen size is small. This is the view of normal screen. On small screen, the view is like this: There is an empty ...
shuja ali's user avatar
0 votes
0 answers
21 views

"TypeError: CredentialsProvider is not a function in NextAuth.js - Next.js 13 setup issue" [closed]

I have been trying to resolve this "TypeError: next_auth_providers_credentials__WEBPACK_IMPORTED_MODULE_1__ is not a function" error. Below is my route.js code import NextAuth from "...
Anas Khan's user avatar
-4 votes
0 answers
25 views

Web form blocking when accessing via VPN, TOR, etc [closed]

Good morning. Any clue what is the cause of this domain blocking my access to a web form of search whenever it is accessed through a VPN, TOR, proxy, etc (even if the country is the same as the site ...
Matik's user avatar
  • 1
0 votes
0 answers
14 views

Mobile Browser Camera feed to detect/recognise the local image i passed in React JS

I've been trying to detect the image i passed to the 'detectTrigger()' function when the browser camera feed is placed infront of this page. What i do is pass the image asset local path i want to ...
mockingbird's user avatar
4 votes
1 answer
42 views

Is it possible to add a locale to Intl.DateTimeFormat?

I am building a multi-lingual website with the languages Dutch, English and Papiamentu (spoken on Curaçao and Bonaire). I can use Intl.DateTimeFormat with Dutch and English but Papiamentu seems to not ...
Lodybo's user avatar
  • 509
-3 votes
0 answers
23 views

Linux: How to enable the sound card? [closed]

I've used SoundCard Switch GNOME extension to disable sound card, but now I can't enable it (using the same tool). _onToggle(menuItem, state) { if (state) { let cmd = ["pkexec&...
Danijel's user avatar
  • 8,568
-1 votes
0 answers
26 views

How do i resolve a "Cannot read properties of undefined (reading 'requestHandler')"

So I am implementing Sentry on my Node project, but when I run it I am getting this error. TypeError: Cannot read properties of undefined (reading 'requestHandler') at file:///C:/Users/HP/Documents/...
Kerry Steph's user avatar
1 vote
0 answers
10 views

When hooking using Frida, certain locations are not hooked with Error(unable to intercept function at 0040101D; please file a bug at value)

First of all, I apologize for my English skills. i'm hooking a simple example through frida. However, there was a problem in progress, but my skills are not good, so I don't know what to search for ...
astro3141's user avatar
-2 votes
0 answers
18 views

Redirects to Previously Logged-in User [closed]

I am facing an issue with my application that integrates with the Spotify API for user authentication. Specifically, the problem occurs during the login process. When the user visits the login page, ...
Ritam26's user avatar
  • 17
1 vote
0 answers
19 views

How to download images to pdf using html2-pdf

I am trying to download pdf with my DataTable records each record have download report button while hit on that button I want to download the pdf with respective row data so I'm using html2-pdf ...
Chinni Ch's user avatar
-1 votes
0 answers
21 views

I cant play this m3u8 file for the life of me [closed]

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Video ...
Toni's user avatar
  • 21
-4 votes
1 answer
39 views

How can I make the scroll bar significantly larger? [closed]

I am working on a webpage where I need the scroll bar to appear much larger than its default size. Specifically, I want to increase the width of the scroll bar and make it more prominent so users can ...
Moayad Hamdan's user avatar

1
2 3 4 5
50664