Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

sql error, Saying theres no relations between tables but I cant figure out why

I have a database for a DnD builder webpage. We want to make an application that when the user selects a radio on the webpage it will pull the corresponding information from the database and display ...
Yunios's user avatar
  • 3
0 votes
0 answers
7 views

Save additional fields values from WooCommerce checkout Blocks

I'm developing a Payment Gateway plugin for WooCommerce Blocks (Gutenberg). I need to get a custom checkout field in the address block. I've managed to do so, but now I'm stuck on how I can pass the ...
xCUELHO's user avatar
  • 33
0 votes
0 answers
9 views

Alternative to Headless JS

I am trying to write a React Native app that runs some processing every 15 minutes. To be specific: I want fetch a status from an open 3rd party API and create a notification if that status has ...
Resonance's user avatar
  • 3,668
0 votes
1 answer
19 views

How to force JavaScript fetch api to request page in desktop mode?

I use the JavaScript fetch api to download json files from Reddit's public json endpoints. Recently, Reddit has made their json endpoints respond differently based on whether the browser is in ...
Haydentech's user avatar
  • 1,178
-2 votes
0 answers
12 views

What are the ways I can optimize math heavy operations in JS? [closed]

I'm using a Javascript ES6 Class to store an instance of a polygon object. Within this object I define functions to calculate contour coordinates based on a long physics equation. In my constructor I ...
Zach's user avatar
  • 1
-2 votes
1 answer
17 views

Parameter encoded with encodeURIComponent, how to get it in a Python Bottle server?

Let's say I send a request with JavaScript: fetch("/query?q=" + encodeURIComponent("c'est un château? Yes & no!")); to a Python Bottle server: from bottle import Bottle, ...
Basj's user avatar
  • 45.4k
0 votes
0 answers
15 views

Why is there a line going through a part of the circle?

I am making a collision system but the intersections of a partial circle are not working. There is a line that is going through the edge of the circle can anyone help? I am using canvas as well. This ...
2TKTK1234567's user avatar
0 votes
1 answer
19 views

Do functions within a component remain in memory even after execution ends?

I have a question about the code below Nextjs. The handleContactClick function is expected to be deleted from memory when the UserDetail component function ends, so I thought it was necessary to use ...
S.J. Lim's user avatar
  • 3,155
0 votes
0 answers
9 views

jquery UI Calendar date range showing too many months

I have the jquery UI code where i am trying to display 6 months of the current year starting from this months onwards till next 5 months so a total of 6 months, but right now, it goes beyond the those ...
Notion's user avatar
  • 56
0 votes
1 answer
38 views

How to check whether a value exists in a nested object recursively

Unable to create a fully recursive function that checks if a value exists in a nested object tried Implementing the code in JavaScript(ES6+) but only managed to do it semi-recursive with a for loop to ...
Dvir Rozenblat's user avatar
0 votes
0 answers
28 views

Please explain the time complexity of below LeetCode solutions in JavaScript

How below code have two different complexities? I am solving one question of leetcode and while solving I have written one solution which is comparing if a part of string is palindrome or not. But ...
RUSHIKESH NARWADE's user avatar
0 votes
0 answers
7 views

splitting js code base into multiple folders inside assets folder with webpack-encore symfony bundler

I am working on a full stack symfony (v7) project in which i'm using Webpack-encore bundle to bundle and compile different assets the config in bootstrap.js says the following: import { ...
tsukingo's user avatar
  • 159
1 vote
1 answer
23 views

How to add class "active" on element when another element is clicked?

So I have a layout with 4 different tabs, when each tab is clicked, it populates information below it. Right now, when I click on the arrow, it moves up or down based on which tab you're on. but I ...
Schneider G's user avatar
0 votes
1 answer
23 views

Component does not redraw on keypress in React

I have a group of components added to the parent as subcomponents. Each of those sub components has a number of variables and are contained in a JSON. When I use the arrow keys I can update the ...
Geoff's user avatar
  • 295
0 votes
0 answers
18 views

Issue attempting to listen for "user input" events on a webpage that has <frame> content

I am developing a Chrome extension at the moment, and one of its main features is to trigger specific checks upon detecting user typing in input and textarea elements. My code works fine on normal ...
ionicle's user avatar
0 votes
1 answer
15 views

Prisma migration error: "type "serial" does not exist" despite using PostgreSQL 15

I'm trying to run a migration in my Prisma project, but I'm encountering the error "type "serial" does not exist", even though I'm using PostgreSQL 15.8, which should support this ...
seven's user avatar
  • 1,532
0 votes
2 answers
37 views

Div doesn't occupy space in mobile

I have a div with three elements: input field, timer, reset button in desktop view all three elements are of the same height but when I view it on an iphone 12 mini specifically the timer and reset ...
Rohith Nambiar's user avatar
1 vote
0 answers
18 views

Tooltip for a 2 dataset doughnut chart is being presented when mouse's rover is out of the dataset placement

I have a doughnut chart implemented with Chart.js 4.4.1. This chart has 2 datasets, one in an outside dataset doughnut, and the other one in the inside dataset doughnut. Each dataset has his own ...
ddias's user avatar
  • 53
1 vote
0 answers
6 views

Highcharts organizational chart export font size

I am using highcharts to renderorganizational chart for our company and in my web browser it works fine but when I export to pdf i loose text in my nodes. I have tried numerous approaches with no luck....
Roger's user avatar
  • 21
0 votes
0 answers
10 views

failed installing opencv4node

i would want to make a node.js project with opencv but i failed to install opencv4node. Can someone help me please .Here are the errors I encountered i tried installing chocolatey, i saw it in someone'...
Wharton Aldrick's user avatar
0 votes
0 answers
28 views

How do I style a volume slider created using range:input [duplicate]

WHERE I USED MY RANGE INPUT AS VOLUME SLIDER <RangeInput min={0} max={1} step="any" value={volume} onChange={(e: BaseSyntheticEvent) => { if (video) { setVolume(e.target....
Ayomide Emmanuel Akintan's user avatar
0 votes
1 answer
23 views

Tanstack Data Table keeps resetting pagination

I have a table from @tanstack/react-table I want to implement pagination. I've the below so far and when I click next page it adds 1 to the pageIndex, but then immediately resets it back to 0. CODE &...
David Henry's user avatar
  • 2,876
1 vote
1 answer
13 views

Is it possible to get a CSS Selector from an existing node in Puppeteer?

I have a pretty simple use case here, I need to go through a table of elements and click on each one, and enter a value. In the browser environment, you can call the QuerySelector on document, and any ...
Tyler Stone's user avatar
0 votes
0 answers
12 views

Field not created in mongoDB

I'm am making a post request, where the schema includes a creator field like this import { Schema, model, models } from 'mongoose'; const PromptSchema = new Schema({ prompt: { type: String, ...
Watti Favour's user avatar
0 votes
0 answers
15 views

How to clone or monkey patch a React Component so one method changes

Let's say we have class OriginalComponent extends Component { // various code.. someFunction = () => { // does stuff } } I want to get the functionality of OriginalComponent but with the ...
Ben G's user avatar
  • 26.6k
0 votes
0 answers
3 views

Azure Speech to Text - AutoDetect Language not working

I'm working on a project using NextJS where I need to implement continuous Speech-to-Text with language detection. While I have successfully set up Speech-to-Text for a single language, I'm struggling ...
jojak's user avatar
  • 1
0 votes
0 answers
21 views

How to tell a function call has left the call stack

I am writing a Frontend Logger application and in simple terms, this will be a small library that can be used in other applications. As part of this library, I want to build a smart function where ...
DANIEL SSEJJEMBA's user avatar
1 vote
0 answers
10 views

Next.js serverless API won't update data automatically until I redeploy the project

When I POST something through the API, the data stores in the database successfully. However, my GET API doesn't retrieve the updated data and instead shows the old data that was available at build ...
DeepsEffect's user avatar
1 vote
0 answers
13 views

Audio intermitency js

The page is exibit in a TV on a reception. When it's open we got a dialog with a button to allow the webpage to play audio. And the page refresh itself after 40 seconds. For the most time of the day, ...
Israel Bessa's user avatar
1 vote
0 answers
12 views

Odoo Snippet Not Visible in Website Builder After Module Installation

I am developing a custom module for Odoo 16 that adds a BMI calculator snippet to the Website Builder. However, after installing the module, the snippet does not appear in the blocks section of the ...
Adil's user avatar
  • 11
1 vote
2 answers
32 views

How do I create a userscript that creates a button on a webpage, that when clicked, runs the GM_registerMenuCommand for that userscript?

I have a userscript that includes a GM_registerMenuCommand('Render LaTeX', () => { (and so forth) that makes part of the userscript only run when manually triggered by selecting the ViolentMonkey ...
Logan J. Fisher's user avatar
1 vote
0 answers
21 views

Tabs not aligned in Bootstrap Modal

I´m building a Bootstrap Modal and I want to put some tabs inside this Modal to be able to navigate inside him. What is happenings is that the tabs displayed are not aligned the proper way like in the ...
Luís Briga's user avatar
0 votes
2 answers
53 views

Is there a way to make a different function happen after every single click on the document in js?

Im trying to make a gaming website in which when the user first signs in, they are greeted by two show lights that shine down on words that say: "WELCOME TO COSMIC GAMES!" I want to make it ...
massiveFatty372's user avatar
-3 votes
0 answers
34 views

SetInterval and ClearInterval in React (stopwatch) [closed]

I am very new in React and I would like some help for my code. I have managed to code the setInterval (I know, it is not the best way of doing it) and clearInterval. Could you, please, check both ...
user27393691's user avatar
0 votes
0 answers
11 views

highcharts tree graph panning and zoom in and out

I'm using a Highcharts tree graph chart. I managed to enable the scrollbar with some help. Another thing I'm trying to do but keep failing is to be able to move on the graph like on Google maps and ...
Jelal's user avatar
  • 271
0 votes
0 answers
6 views

Spotify Web API redirect user back to the app after log out [duplicate]

I have a nodejs app that utilizes Spotify Web API, where I am trying to implement a log out button for the user. Currently I am redirecting the user to https://accounts.spotify.com/logout which then ...
lapin's user avatar
  • 1
0 votes
0 answers
29 views

Unable to Track New Files and Folders in Git with VS Code

I cloned my Git repository in VS Code, and while I can commit and push changes to existing files, new files or folders I create aren’t recognized. When I run git status, it says my branch is up to ...
Aftab Ahmed's user avatar
0 votes
0 answers
31 views

How to correctly handle issues with incorrect rotation axes after multiple CSS rotate transformations

I’m currently learning about CSS transforms, and I’ve created a demo that showcases 3D rotation of an object. Here is a simplified version of my code: export default function RotateDemo() { const [...
abi's user avatar
  • 1
-2 votes
0 answers
49 views

Unable to write to the file [closed]

I am reading individual lines from a file and replacing . in each line. In console.log() it is displaying the expected output but I am unable to write it back to the file. r1.on('line', function(line) ...
Madhuraank B's user avatar
0 votes
0 answers
17 views

Google OAuth 2.0 issues

I'm having issues with authenticating with Google. I am using react front-end with node as back-end, with an Express server. Here is the Google API Client side information: My server endpoint (server ...
Argentum's user avatar
0 votes
0 answers
7 views

Save Contact with vcf works on mac, but not on iPhone

I have some code to save contact info as a vcf. The code works fine, but when using on iOS the contact never saves. It only works on Mac. Not sure if there is something I am missing or what. I tried a ...
rockets4all's user avatar
0 votes
0 answers
13 views

How does FlatList rendering items with same names work?

Instead of saving views position its just delete them, or i dont know what it is doing to views and other elements, i will show pictures it is easier to explain. [![What i want 1][https://i.sstatic....
GigaBurek's user avatar
1 vote
0 answers
22 views

Browser EventLoop prevents window load event from firing when advanced by an async substlecrypto call

Why is it happening and how to fix it? To reproduce comment/uncomment generateKey call and watch the event handler (you might want to put into a module (which is how I use it) or execute is as part ...
vladimir_1969_2's user avatar
0 votes
0 answers
17 views

Static Route Triggering Dynamic Parallel Route in Next.js

I'm working with Next.js and have the following routes: /@modal/(.)snippets/[id]/page.tsx (for a modal) /snippets/[id]/page.tsx (for individual snippets) /snippets/new/page.tsx (for creating a new ...
Croviajo's user avatar
  • 339
0 votes
0 answers
7 views

ERPNext Query & Script code Problem for Report

In this below code i need month names like setember, october, november instead of {current_month}, {next_month_name}, etc and the condition is this report works as interval of 3 months like if the ...
Syed Ahamed's user avatar
0 votes
0 answers
13 views

Heap out of memory Angular Ckeditor 5

All I did was npm install --save @ckeditor/ckeditor5-angular, imported it in shared.module.ts import { CKEditorModule } from '@ckeditor/ckeditor5-angular'; And after typing ng serve i get this error ...
adam nikk's user avatar
  • 392
0 votes
0 answers
8 views

Redux mockStore - Data not passing in component

I am trying to do the unit testing for the calculation in my component. My issue is that I have created a mockStore but that value inside the mockStore is not passing the data to my component. Hence ...
Chandru Logan's user avatar
0 votes
2 answers
50 views

Compare string with day and month of date

Using JavaScript, I need to add a class to a HTML element depending on the current day and month. To do this, I would like to compare the data-date of the elements ("09-20", "09-21"...
Andreas Böttcher's user avatar
3 votes
3 answers
78 views

Show/hide some text in larger text

I'm trying to show/hide some text (a highlight) in the middle of a paragraph. These criteria are essential: I need the method to be flexible to work on a single line or multi-line. And I need it to ...
garrettlynchirl's user avatar
2 votes
1 answer
30 views

Scale rotated SVGelements

Issue I tried to create a little plugin that enables SVGelements to be scaled by dragging a little rect on top-right of each existing rect and circle. While this works fine for the red elements, it ...
Lain's user avatar
  • 3,706

1
2 3 4 5
50671