All Questions
Tagged with javascript not reactjs
2,321,001 questions
0
votes
0
answers
19
views
Javascript notificationclick is not called on Flutter web app debug build
I want to open a new page on notification click in my Flutter web app. Here is my service worker:
console.log("SW: test.js loaded");
self.addEventListener("push", event => {
console.log("SW: ...
0
votes
0
answers
30
views
Loading images in HTML – Differentiation between no response and error response
I'm building a kind of gallery app. Users are adding images by inserting URLs into the database and the HTML page is then hotlinking those. Obviously, because of link rotting, the gallery is full of ...
0
votes
1
answer
63
views
How to remove a css border from a twitter embed?
There is a grey border around all embeded tweets but I want to remove it and add round corners too. But because its in an iframe i have no idea how to remove the border.
<blockquote class="...
-3
votes
0
answers
30
views
Client-Side, Single-File JS Solution for DOCX and PDF Text Extraction Vanilla JS/Lightweight Lib [closed]
I am working on a pure HTML/JavaScript application (Vanilla JS, single-file setup) that must operate without a Node backend or complex build tools.
The goal is to achieve client-side text extraction ...
-4
votes
0
answers
37
views
Debugging - which page request sets a certain Javascript Cookie? [closed]
I have to debug a website that contains a lot of third-party JavaScript code, and I need to determine which page request sets (or in the error case, does NOT set) at specific JavaScript cookie.
My ...
2
votes
0
answers
37
views
WebGL canvas `toBlob()` result shows glitched color spots not seen on the canvas (cause: invalid pixel value for premultipliedAlpha)
In the below code snippet, I draw a texture on a canvas on the left, and then call canvas.toBlob() and display the result in an <img> on the right. The resulting image has a cyan glitchy spot:
...
-6
votes
0
answers
50
views
How could i bypass floating point limits
I’m writing a program where you manipulate and mess around with the digits in an irrational number. One problem though, I can’t for the life of me figure out how to calculate the irrational number ...
0
votes
1
answer
47
views
Issue with select2 and option group
I am adding a new option to a select2 optiongroup with custom drawing of options. here is my code:
function defaultParameter(value, defaultValue) {
return typeof value !== 'undefined' ? value : ...
0
votes
0
answers
28
views
How to build an executable bundle.js for Node.js?
I want to bundle multiple TypeScript files and generate a file that bundles everything to be used through node build/bundle.js and that can be copy-pasted to CodinGame. Everything works (transpilation,...
-3
votes
0
answers
88
views
How to remove unused JavaScript and CSS files from my website? [closed]
I’m trying to improve my website performance and Google PageSpeed Insights shows that many JavaScript and CSS files are unused or partially unused.
I want to remove or disable these unnecessary files, ...
0
votes
2
answers
47
views
Is JavaScript addEventListener to images possible? Unable to click on an image to add to cart
I am still in the process of writing this, but I am now in a slump. This might be a novice question but is there a way to click on the image itself? I was hoping to incorprate it as an e-commerce ...
2
votes
1
answer
81
views
Does creating multiple JWT authentication tokens mean multiple server sessions for concurrent requests?
I'm participating in an online Sudoku-solving challenge where you create an account, and the server gives you a JWT token. Every request (getting the board, submitting answers, etc.) must include that ...
0
votes
0
answers
33
views
Leaflet.VectorGrid with multiple interactive layers
I build layers based on L.vectorGrid.protobuf(). Each layer has interactive: true. Each works perfectly for click, mouseover and mouseout, but only in isolation.
When I have multiple layers only the ...
1
vote
2
answers
43
views
Unexpected behavior of switch compared to if/else
I've come across something I do not understand while learning JavaScript; let's say I have the following HTML:
<select name="options" id="options" onchange='on_change(this)'>
...
-1
votes
0
answers
19
views
wrong get API, CORS, xhr , net::ERR_CONNECTION_RESET [closed]
I'm learning FE, BE; i did download win32/win64 Openssl, configured live server extension to accept https. But it still redirect my BE https to http. And it really caused a
"liveServer.settings....
-4
votes
0
answers
42
views
How do I make model scrollable? [closed]
I have this code that generates modal from javascript.
Here is the code:
var _modalManager;
this.init = function (modalManager) {
_modalManager = modalManager;
var modal = _modalManager....
-3
votes
0
answers
38
views
How to store and match user-selected words with their different forms across texts? [closed]
I want to build a program where a user can input any text they want to study.
While reading, the user can select certain words. Each selected word should be stored in a dictionary or list.
Later, when ...
-1
votes
0
answers
35
views
Error "[Layer Chart] You set `yNice: true` but the yScale does not have a `.nice` method. Ignoring..."
When attempting to reproduce the punchcard graphic from LayerChart documentation, I get the following result:
Playground demo
[Layer Chart] You set yNice: true but the yScale does not have a .nice ...
Advice
1
vote
1
replies
37
views
How to make photoshop like Brush Engine with opacity and flow with JavaScript
I want to know how to make photoshop like Brush Engine with opacity and flow with JavaScript. I already tried putting opacity to each circle and it stack one on another and line become black instead ...
-4
votes
0
answers
43
views
google maps platform builder agent issues?
I have just started using the Google Maps Platform Builder Agent, and it's amazing. I created a map a few years ago of a group of specialists around the world, which could then be searched by location ...
0
votes
0
answers
31
views
how can I fixe my same page links on a website with a lot of scroll animations [closed]
I've tried multiple solutions but the problems remain.
I've tried with both id and anchors.
The main issues are :
It prevents the scoll animations to work, some text never appears.
Ounce it reaches ...
0
votes
0
answers
26
views
liferay javascript client extension not working
I created a JS client-extension for Liferay 7.4 (U60). Everything works fine on my local environment, but after deploying to our Dev environment through a Jenkins pipeline, I’m getting 404 Not Found ...
0
votes
0
answers
15
views
onWorksheetChange not working with Data Validation
I’m having a problem with the onWorksheetChange event, which is supposed to fire when a list cell is changed (Data Validation > List).
If the list source is static comma-separated values, the event ...
-5
votes
0
answers
61
views
How to properly downsize a video in the browser? [closed]
I'm working on a screen sharing app, and I have an incoming 1920x1080px video stream via WebRTC. My problem is that when I resize the browser, the video becomes really blurry as the browser is ...
0
votes
0
answers
26
views
why 'this' is undefined inside WebGLRenderer().setAnimationLoop() [duplicate]
I am new in threejs and initializing scene, render and everything inside a class.
I have a method animate and in the constructor, I am doing this: this.renderer.setAnimationLoop(this.animate)
inside ...