2,531,281 questions
0
votes
2
answers
24
views
How to expand on image on hover to full size?
So I'm creating a website which is going to be a portfolio showcasing a person art and what not. So right now and I have it to where when you hover on the image it expands and fades out the background ...
-2
votes
0
answers
31
views
What is wrong in this ProgressBar Component
What is wrong in this code , why is it failing the test cases giving error like these :
› on clicking button +10%, increments progress correctly
Unable to find an element with the text: 10%. This ...
0
votes
0
answers
12
views
Swiper.js not autoplaying and slides disappearing during transition in React (Vite + Swiper 11)
I'm using Swiper.js v11 with React and Vite, and I'm encountering two issues:
Items overflow from swiper-wrapper at large screens.
During swiping (manual or autoplay), the in-active slide briefly ...
1
vote
1
answer
24
views
Does V8 optimize inner functions based on closure values?
For example:
function makeFunc(a,b,c,d,e) {
return () => {
if (a) { /* do something expensive not referencing b,c,d,e */ }
if (b) { /* do something expensive not referencing a,c,...
0
votes
0
answers
34
views
URL metadata preview not working with react router
I have a react.js website which uses the react router plugin to direct different component files for different routes, as seen below in my App.js file:
import React from 'react';
import {
...
0
votes
0
answers
18
views
Why is a SPAN element destroying Model properties in ASP.NET MVC 5?
In my model ConfirmationDetailViewModel, there is a List<ConfirmationNote> Notes property:
public class ConfirmationDetailViewModel
{
public ConfirmationDetail Detail { get; set; }
...
0
votes
1
answer
33
views
Tampermonkey: removing blank <tr> rows left after deleting table content
I'm writing a Tampermonkey script that removes rows from a table on RateYourMusic voting pages if the descriptor is 'scary', 'disturbing', or 'macabre'. That part works — but the blank rows that ...
0
votes
1
answer
25
views
Why Can This Not Write To Directory 'Output'?
I am attempting to write a file to an existing directory, using node, path, and fs.
How it's supposed to work:
Init mock data.
Loop through mock data.
Write mock string to existing directory 'output'
...
0
votes
1
answer
18
views
Hide Non-Visible Slides + Make Responsive
I have a few things that I am trying to do with SwiperJS. You can see on my site here: http://newgl.greenlegion.com
ISSUE 1: i cannot figure out a way to see more of the slide on mobile. It's tough ...
-2
votes
0
answers
32
views
Get file address with ASP.NET [closed]
I have a C# application with ASP.NET MVC and Framework 4.8, and CSHTML pages. I also have the DevExpress MVC version 21.2 libraries, although I don't think it's important. I need to put a button on my ...
2
votes
1
answer
38
views
setState function not recognized as function
In my React Native app, I'm having a problem where the setState function is not being recognized as a function.
I already inserted the context provider on the App root page and exported the context ...
0
votes
1
answer
24
views
p5.js Cannot convert undefined or null to object
I am trying to make a grid for a game, and I set up the grid, but when I use a for loop to display all of the cells it gives me an error - Uncaught TypeError: Cannot convert undefined or null to ...
-5
votes
0
answers
40
views
Video capture/analysis on simple static snack (hot fries) site [closed]
Alright, so we've got this pretty basic, mostly static marketing website – you know, the kind that just shows off the product, here it is andycappshotfries.com. Nothing fancy on the backend, just ...
3
votes
1
answer
64
views
Fill circle area with text input
I've a circle of gratitude section on a page.
See here - https://prnt.sc/ut6a7MbqUIoS
The idea is the page will have a input box where user can input there name and when press submit button, the name ...
1
vote
3
answers
59
views
Regex joined string - match exact token
I have a string which is the result of a join operation on an array of string tokens using | as separator:
['ab', 'abc', 'abcd'].join('|') => 'ab|abc|abcd'
I need a regex that matches an entire ...
0
votes
0
answers
22
views
How to patch a custom resource in kubernetes using the javascript client
I created a custom resource definition and also added the status subresource:
subresources:
status: {}
I'm trying to update it with the following code but I'm getting all sorts of errors:
...
-2
votes
0
answers
24
views
Printing a Local Report without Preview [closed]
I using visual studio 2022 with MVC NET 8 and C# language and Microsoft reporting service 2016.
I Want to print invoice without preview report using javascript.
I have too ID for too type invoice. The ...
-2
votes
0
answers
61
views
How to store a light and dark theme with HTML/JS using a dropdown box? [closed]
I am currently working on a light and dark theme for a website that several others and I are designing. Currently, I have an html dropdown box that allows you to select a color theme option, and upon ...
0
votes
2
answers
54
views
How to pass a parameter to php file
I want to create an app in which you can drag-and-drop your local file and upload it to a web server.
I made it.
My next challenge is you can upload your file into a different folder depending on who ...
-4
votes
0
answers
32
views
Issue on iPhone: "Can't open this page" Error — Triggered During Navigation Menu Events [closed]
Issue Summary: I've implemented a three-layer navigation menu on my site. The issue arises after repeated interactions with the menu — the page eventually reloads unexpectedly, and just before the ...
-1
votes
0
answers
14
views
Error minting NFT in React with ethers.js: "no matching fragment
I'm encountering an error when trying to mint an NFT using a React frontend and the ethers.js library. The specific error I'm getting is:
Error minting NFT: no matching fragment (operation="...
-3
votes
1
answer
48
views
Make images scale within a div element [closed]
I have a [div] that contains a list of paragraphs and a single [img]. I'd like the image to scale itself so that the total content doesn't overflow the [div]. That is, if there's more text, then make ...
-4
votes
0
answers
23
views
Tree view containing editbox, checkbox controls [closed]
Can anybody help me find a suitable JS framework for tree view and GUI components?
I want to use it inside an HTML host, so it can support mouse events, allow dynamic content updates, and enable easy ...
0
votes
0
answers
30
views
DataTables loses selected checkboxes across pages when generating custom PDF with jQuery
I'm using DataTables with pagination and checkboxes to allow users to select multiple banners. Upon clicking "Generate Proposal", I collect all checked rows, generate HTML, and convert it to ...
0
votes
0
answers
75
views
Issue with multiple "else if" statments in javascript [closed]
Im having issues trying to get the following code to work.
I have temporarily set the randomNumber const to 0.99 for testing.
When I click the "Rock" button, the console log displays the 0....
0
votes
1
answer
19
views
Elementor background video does not loop — how to force it when loop is ignored?
I'm using Elementor's built-in background video feature (via Section > Style > Background > Video) on a section.
Even though Elementor adds the loop attribute to the <video> tag, the ...
1
vote
0
answers
20
views
How do I import WASM in Worker JS in a Vue 3 project powered by Vite?
I am trying to request a WASM function within a JS Worker. I am stuck with it because nothing works in the way I have tried, but also I cannot see any error. Let me explain what I am doing.
First, I ...
-1
votes
0
answers
31
views
Adding a PDF file to a zip file containing images with JSZIP and JQUERY
I create a zip file containing images (with their urls extracted server-side via classic asp code) and it works fine.
I was inspired by this excellent example [https://jsfiddle.net/jaitsujin/zrdgsjht/]...
-4
votes
1
answer
86
views
document.getElementsByClassName does not work as expected [closed]
I am trying to add a group of HTML elements dynamically to the document, and reset and refresh name and id attributes each time when removing or adding the elements.
When I use document....
-1
votes
0
answers
21
views
My Mesh visualiser code takes so long to load the mesh files to the borwser , is SSR a solution? [closed]
I’m working on a 3D mesh viewer using .obj and .mtl files, but I’m running into performance issues — the browser takes a long time to load and render the mesh files, and it’s using a lot of my local ...
1
vote
1
answer
59
views
Chrome >= 134 css transform performance
Has there been some kind of recent upgrade to how Google Chrome handles scroll events and/or applying transform styles?
Since about Chrome v134 I have the issue that setting a transform/translateY ...
2
votes
1
answer
42
views
Intl.DateTimeFormat: Why is timeZoneName: "shortOffset" is having a different value in different languages
We are currently exploring showing timestamps with time zone to our users and decided to go with the Intl.DateTimeFormat option timeZoneName: "shortOffset" but we now noticed that the value ...
-5
votes
0
answers
45
views
Passing HTML elements between multiple Swift ViewControllers in Xcode iOS app [closed]
I'm pretty new to iOS app development in general, and I'm struggling to find online resources on how to pass variables (parsed from an HTML table via JavaScript, seen here: HTML_Table_Parsing) between ...
1
vote
1
answer
27
views
[runtime not ready]: Error: Non-js exception: Compiling JS failed: 1283:3:import declaration must be at top level of module, js engine: hermes
I upgraded my react native from 0.75.2 to 0.79.1 in order to fix the issue with the latest Xcode update. I followed exactly everything in the upgrade helper. After a long of trying to run the app, I ...
-3
votes
0
answers
33
views
How can I preserve the range of the DOM in JavaScript? [closed]
I have a rich text editor control. I am storing the range whenever the user click in that area because I have to do some changes there. But when the user clicks outside it the DOM is changing and due ...
0
votes
1
answer
27
views
Firebase Query Builder and Code get data not showing data [duplicate]
I am a React Native coder here I am getting a illogical problem as I am adding 2 screenshots of Firestore in that a collection is there and has some documents. When i get cthe ollection using code or ...
1
vote
2
answers
56
views
Removing extra spacing on child element on line break [duplicate]
I have a fixed width div containing another div.
I want the internal div as wide as its text inside, unfortunately, when the text breaks to the second line, there is a space on the right that I can't ...
-1
votes
1
answer
38
views
Issue with Switching and Adding Classes to Elements on Mouse Click
I'm encountering a problem while trying to switch and add classes to elements when a mouse click event occurs. Likewise I have multiple "li" elements. I want to add "class = subdrop ...
0
votes
0
answers
15
views
Kendo.js UID bug
I have a bug in my UI where when using UID as name of the column, the value changes from string to a random guid which is taken from data-uid:
UID looks like this:
uid: 8f7e2416-df36-4f52-a1ab-...
0
votes
1
answer
41
views
How to get results from an async Javascript script using C# and Microsoft WebView2 control?
I have the following Javascript script:
async function getIPAddress() {
var thisFuncName = arguments.callee.toString().match(/function ([^\(]+)/)[1];
var retValue = {
'Result': true,
...
-1
votes
0
answers
29
views
Error: Element type is invalid. Received a promise that resolves to: undefined. Lazy element type must resolve to a class or function [closed]
I am trying to create and publish nextjs ui component Hsciifontpicker inside a [npmjs lib : hsciifontlib].
can I use next/font/local=>localFont function in a npmjs library component ?
...
0
votes
1
answer
29
views
Sentry Logger [warn]: Discarded session because of missing or non-string release
As per the Sentry setup guide for a React FE project
import * as Sentry from "@sentry/react";
Sentry.init({
dsn: "SOME_SENTRY_DNS",
// Setting this option to true will send ...
0
votes
0
answers
23
views
APEX Interactive Grid data not being captured by JavaScript function
I'm having trouble capturing data from multiple Interactive Grids in Oracle APEX Oracle APEX 24.2.3 using JavaScript. When I try to save the data, I'm getting undefined values for all records.
Here's ...
0
votes
1
answer
53
views
Nextjs 15 tailwind PWA: env(safe-area-inset-*) only displayed on 404 pages
I am trying to add padding to the bottom nav of my pwa to prevent items going behind the phone navigation. when i create an empty page the padding is not applied, but on the standard 404 page it is ...
0
votes
1
answer
64
views
Is there some useEffect and useState behavior that explains why only one of these instances work?
I'm using useEffect to fetch data. This data is passed to a state, then used as a prop for a component to render/populate accordingly. Here is the code that works:
const [projects, setProjects] = ...
0
votes
0
answers
25
views
launchWebAuthFlow in Chrome extension: OAuth2 window and popup close after user clicks username
Chrome extension using manifest v3 with popup written with React. As discussed in this post, in order for launchWebAuthFlow to work with Google OAuth, you have to register the client as a "Web ...
2
votes
1
answer
26
views
Ublock Origin replace-node-text
I'm on a website with an overly sensitive profanity filter that sticks periods in the middle of words like doc.u.ments or as.sas.sin. There is no option to turn off the profanity filter. I wanted to ...
1
vote
0
answers
25
views
Demuxing an RTP audio stream using WebRTC API
I am developing a voice chat application.
After the server receives an RTP packet from a client, it sends this packet unmodified to all the other clients. Each client has a different SSRC.
The ...
2
votes
2
answers
63
views
How can I update an object inside an array that's been filtered?
I'm working on this Frontend Mentor challenge and I have most of the functionality down. I can filter the data by it's isActive property to display the correct items based on whether they're active or ...
0
votes
0
answers
39
views
In FE existing screen, I have added field CGT,it's dropdown yes or no,it has to be no by default,when changed to yes,3 extra fields has to be enabled [closed]
I have added old html and javascript code as my organisation uses that, but when I'm hovering on that drop-down option in frontend it's directly becoming 0, and when I click on yes the enabled fields ...