2,523,927 questions
0
votes
0
answers
6
views
executeScript: Error: Cannot access contents of url "chrome-extension://.../main.html".Extension manifest must request permission to access this host
The below minimal web-extension works for Firefox but fails for Chrome.
Basically, I am testing loading a local JS file using chrome.scripting.executeScript() into the current tab. I need the current ...
-1
votes
2
answers
36
views
Why does my custom hook cause an infinite re-render in React even though dependencies seem correct? [duplicate]
I created a custom hook to fetch data and memoize it using useEffect and useMemo, but my component ends up in an infinite re-render loop. I can’t figure out why. Here’s a simplified version of my code:...
-1
votes
2
answers
54
views
Cannot read properties of undefined from For loop [closed]
I have a for loop function that loops through an HTML collection and adds an eventlistener to the elements in the collection. My problem is that I get an error about the event function being unable to ...
Best practices
1
vote
3
replies
43
views
API for study purpose
Good day everyone looking for public api ai for free for study purpose can you give me a links or any api's to support my study in webdev- and any tips about WEB DEV API build with an app how to ...
-1
votes
0
answers
49
views
How to reliably use getImageData() on Public Domain images (Wikimedia/The Met) without a custom proxy? [closed]
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1....
-2
votes
1
answer
64
views
Why don't the tabs get their active look when I access them without clicking directly on them?
I have in-page tabs that work well, and they look 'active' when you click on them which is great, but I also have images in divs I use to access the tabs and when using that, they don't get their ...
Advice
0
votes
1
replies
64
views
Looking for real examples of websites created using CSS Modules
Our website, developed with next.js, uses styled-components, and we're planning to migrate to CSS Modules. SEO, CWV, HTML size before the <body> tag, style minification, and other factors are ...
Advice
0
votes
3
replies
39
views
How do I create a custom tooltip where trigger=axis with echarts4r?
I have very little JavaScript experience, so am finding it difficult to understand the guidance on this. I have a bar chart which shows survey data results over multiple years. However, my survey ...
-4
votes
0
answers
37
views
Running jsRuntime.InvokeAsync twice clears the first set of <canvas> images [closed]
This is what I try to do:
Create a page that is basically made up out of multiple single pages. For that I loop my code and output HTML cumulative. It works fine for everything except the images I ...
-1
votes
0
answers
50
views
I am struggling to be able to get any light to appear in my WebGL application [closed]
I have an application modified from a code base that was given to me. I currently have 4 brick walls and a cube that moves back and forth in the "room". The cube should be emitting point ...
1
vote
1
answer
56
views
Implement JavaScript file code for modal popup partial view in NET Core Web App MVC
I'm building a web app in ASP .NET 10 Core Web App MVC.
The problem is having the JS work for a modal popup partial view once displayed. Partial view is a file picker that receives view model data ...
0
votes
0
answers
80
views
Create UI controls in own tab and present results there [duplicate]
I need to create an extension (for private use, so any permissions OK) as follows:
It opens its controls on a separate, unique (i.e. no duplicates) tab.
The user selects some options and clicks GO.
...
0
votes
0
answers
139
views
How can I mask an image with a different HTML element?
I want to make a part of the header on my website where there is a box made from an SVG, and there is a JavaScript framework that spins and animates this box. However, I want to use this animated box ...
0
votes
0
answers
39
views
Resetting audio graph? (Reconnecting after disconnecting audio nodes) [closed]
I have code that looks like (pseudocode)
source.connect(lowpass)
lowpass.connect(highpass)
highpass.connect(destination)
I have a function which I thought should properly reset the audio graph;
...
0
votes
0
answers
60
views
How to avoid "Close" button on Windows notification via Electron
I know Windows OS notifications can exclude these buttons but how is a mystery to me. Virtually every Windows notification I've ever seen does NOT have any such button but I'm lost on how to make that ...