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

I have a <input type="text"... ...on a page, and need to copy all the changes so that I can display them in a wasm app. I'm stuck with this "select all" operation on Gboard. ...
Davorin Mestric's user avatar
0 votes
0 answers
27 views

I’m building a system where a bot joins a Google Meet call and extracts live transcription. Right now, I’m injecting JavaScript into the Meet tab (through a browser automation bot) and scraping the ...
varaha's user avatar
  • 1
0 votes
2 answers
58 views

The objective is to create a start button that activates the 3x3 grid and make it playable. The cells start with an 'inactive' class. Clicking on the start button changes them from 'inactive' to '...
lunarchild's user avatar
Advice
0 votes
2 replies
65 views

I have some markdown text. I use MarkDig to parse the markdown text and obtain a markdown-document-object-model. (markdown-DOM.) From that, I want to obtain an HTML-DOM. As far as I can tell, the only ...
Mike Nakis's user avatar
Advice
0 votes
0 replies
33 views

I am using the ReactGrid component and I have enabled fillHandled and rangeSelection. Also, I am controlling the focus with focusLocation property. However, there is one scenario that does not work as ...
Aleksander Aleksiev's user avatar
0 votes
0 answers
83 views

I have a web page where I allow users to download an image by clicking a button. I’m using vanilla JavaScript like this: async function downloadFile(url) { const response = await fetch(url); const ...
Mykyta Burma's user avatar
0 votes
0 answers
102 views

I’m creating a simple JS app where I dynamically add new elements to the DOM. However, when I call document.querySelectorAll() after adding them, it doesn’t seem to include the new elements. Example: ...
Devika Anilkumar's user avatar
-4 votes
1 answer
120 views

CONTEXT: My goal is to use http.Get(), then use the golang.org/x/net/html package to parse the resp.Body and extract some bits of data from some <div>'s that all use a similar naming scheme for ...
Quercus's user avatar
  • 15
1 vote
1 answer
68 views

I'm building a PHP page with multiple tabs (Termijnen, Mandaten, and Admin). Each tab's content is pre-rendered by PHP inside hidden <div> elements. I then inject the content into a visible ...
Joep Verhofstad's user avatar
4 votes
3 answers
306 views

Example 1 - No focus outline for link I have a keydown handler for a <textarea>. When the handler gets invoked, I want a link (<a> tag) to receive focus. If you run the example below, ...
Lone Learner's user avatar
  • 21.2k
1 vote
2 answers
87 views

Situation My goal is to remove ALL text from a html file. The file is a part of an ePub (electronic book) Example input and output (It is a chapter of a novel, contained within a single xhtml file.) &...
Peter's user avatar
  • 2,729
0 votes
0 answers
41 views

I’m new to AG Grid and trying to populate data into a pivot table in Angular. I fetch the entire dataset in one API call (legacy, so I cannot change backend code). In the frontend, users can drag ...
Tracy's user avatar
  • 3
0 votes
1 answer
63 views

I'm working on a simple project where I want to animate a div element. I'm trying to make a white box both move to the right and change color when it's clicked. I'm using a JavaScript click event to ...
jyotish's user avatar
  • 11
0 votes
1 answer
101 views

I am building a signup feature in React. My API is working fine — when I hit the endpoint in Postman or cURL, I get a 201 Created response with JSON. But in Chrome DevTools → Network tab, when I ...
somnath-more's user avatar
0 votes
1 answer
102 views

I have a modal with elements that I want to return to a default state every time the modal is closed. Rather than worry about making sure I tell the openModal or closeModal functions to clear each ...
Nicholas Harrell's user avatar
0 votes
2 answers
177 views

I am working on a user script (I'm using Tampermoney as my user script manager) to append a dynamic Rotten Tomatoes link to a Jellyfin movies/series page. It works when I manually reload on the title'...
Sam Saint-Pettersen's user avatar
0 votes
1 answer
54 views

I'm creating a mini music player so I can customize it, however I'm currently stuck on why my audio link isn't play any sound. PS: Don't mind how messy this is. This will be cleaned up later. CODE <...
Inuko's user avatar
  • 9
1 vote
2 answers
116 views

I have a table with six columns containing approximately 7,000 entries. Currently, the table is filtered by six separate input text boxes, each with its own JavaScript function. Each function targets ...
M.Rono's user avatar
  • 75
1 vote
3 answers
95 views

I add an addEventListener so that when the user clicks on the "post" button, a new div with the user input should appear above it. But it disappears as soon as it appears. I have attached a ...
lunarchild's user avatar
2 votes
1 answer
75 views

So, I was doing a lesson on Scrimba about JavaScript, when I were told to do this JavaScript challenge involving the style property. But I forgot to select question via document.getElementById(). ...
Jonathan Levi's user avatar
3 votes
1 answer
86 views

My script is supposed to fadeIn() a div when a slide of the carousel is "active". At the start, the first image is visible, le div slowly fades in. I manually move to any slide, but then the ...
OldPadawan's user avatar
  • 1,305
0 votes
0 answers
74 views

This is a follow-up to this question I asked a year ago, about building a Chrome extension on top of a Google Spreadsheet. I'm trying to identify a hyperlink element in GSheets via my Chrome ext to ...
Ryan Grush's user avatar
  • 2,166
2 votes
3 answers
123 views

In this example I would expect that the elements list is empty, since we set the starting point of the query to the div.bbb element. Somehow it matches the span element even though none of the div ...
Martins Balodis's user avatar
1 vote
1 answer
75 views

When I use the createRadio() function from the p5js library in a function constructor and create multiple objects of that class, the radio buttons act differently, when I select an option in a radio ...
hamed rahafrouz's user avatar
0 votes
3 answers
97 views

take the code below: contentsDiv.innerHTML = container.outerHTML; if(contentsDiv.firstChild === container) console.log('true'); in this code, contentsDiv is a div created in my html file ...
Miachi Solomon's user avatar
-2 votes
1 answer
67 views

If I use both Which one runs? Do they both run? Having trouble understanding the difference. const button = document.getElementById('button') button.onclick = function() { console.log('onclick'); } // ...
Jyosna Vuttla's user avatar
1 vote
1 answer
61 views

This is the part of the code in the Django + JavaScript Todo App that is responsible for deleting a note. I need a csrftoken for this, but the JS is showing me an error in the console. What did I do ...
Aram Madoyan's user avatar
0 votes
2 answers
76 views

I have noticed this xpath misleading behavior problem, for this expression: elemA[ not(elemB) ] it has two meanings: 1. yes show all elemA filtered all childs elemB. eg: select all elements but ...
mr.tee's user avatar
  • 43
0 votes
1 answer
72 views

I have added an event listener to "keydown" event in my ReactJS application. Because of a third party library, I'm adding it via setTimeout in a useEffect, this component is like a popup, so ...
GLHF's user avatar
  • 4,094
2 votes
2 answers
70 views

So, I have a mystery bug that is hard to reproduce, and so far my best suspect is this code: function getMagicElement(root) { var collection = root.getElementsByTagName('span'); for ( var i = ...
Vilx-'s user avatar
  • 107k
1 vote
1 answer
156 views

How can I change the following light DOM custom element to show the content of the default slot between (!!!) the two horizontal rulers? Please be aware, that I cannot use shadow DOM in my use case. &...
Natasha's user avatar
  • 916
2 votes
1 answer
93 views

I am trying to add an HTMLElement to a PDF after converting it to an image using "toPng" from "html-to-image". The HTMLElement exists inside another, that plays the role of the ...
El baz Houcine's user avatar
0 votes
0 answers
116 views

For quite some time, I've had an issue in three.js where when putting any HTML element updates in my animation loop, my PointerLockControls always have a strange stutter. For example: function animate(...
Parking Master's user avatar
0 votes
0 answers
134 views

I have the following basic html code in a file called default.html: <html> <head></head> <body> <input id="year" type="number" min="2000" ...
Safwan's user avatar
  • 364
0 votes
1 answer
53 views

I've recently had a problem with needing to traverse and transform some DOM children from a Parent Preact component: import {isElevated} from "../stores/UserStateStore.ts"; import type {...
Paul Krahn's user avatar
0 votes
2 answers
61 views

I wrote a browser extention for social media handling. You can e.g. reformulate your given text to make it more positive etc. Now if I insert the response to the X - Reply Textarea back it does not ...
MaTok's user avatar
  • 401
1 vote
1 answer
65 views

I'm trying to display the current time inside a paragraph element using JavaScript. My HTML and JavaScript are in separate files. Here's my HTML snippet: <p id="time"></p> And ...
ariori Abdulrofii''s user avatar
0 votes
0 answers
44 views

I'd like to create a dynamic select menu in JavaScript and hit a problem below. When I run the codes below, I got an error which reads "Uncaught TypeError: Cannot read properties of null (reading ...
hopstepforward's user avatar
1 vote
1 answer
44 views

I have a simple html file and I have a loader (div .loader) from UIVerse to cover until the iframe for a google form loads in then my javascript code const iframe = document.querySelector('iframe'); ...
Jade E's user avatar
  • 21
0 votes
3 answers
105 views

I am trying to enhance my Js knowledge by building a simple music player in HTML, JS and Tailwind CSS. I am trying to add the DOM buttons to all of the audios. I expect the buttons to play the audio ...
Jesse's user avatar
  • 15
0 votes
2 answers
89 views

I'm creating basically a tooltip for SVG groups. I'm not using the title=>tooltip built in because I want to have richer content eventually that plain text can't support. I've used a div element ...
dacracot's user avatar
  • 22.5k
-1 votes
1 answer
94 views

When a user deletes a <p> element (or any DOM element) using browser developer tools/extensions, these changes are local and don’t notify the server. However, if the client specifically wants to ...
Umut Özkan's user avatar
-1 votes
3 answers
88 views

In this snippet, changing the background-color to yellow works. But when i try to modify the value of 'grid-template-column', which takes an unusual value, a string of repeating 'auto' strings - no go....
Garth Vader's user avatar
0 votes
0 answers
29 views

our dev team working with apryse pdftron (angular) and using custom elements on the loaded document, like checkbox, textbox - which you can drag-and-drop into the webviewer. My problem is, that these ...
M András's user avatar
  • 349
2 votes
1 answer
333 views

I have two components, a parent and a child. I want to define some content in the child that isn't rendered in its DOM hierarchy, but rather rendered by the parent in its own hierarchy. My child ...
goose_lake's user avatar
  • 1,637
1 vote
1 answer
74 views

I'm writing an xml file using the stax and the dom api. The stax api writes the newline unchanged. The dom api escapes the newline in the attribute to &#10;. Why is there a difference? How do I ...
Kristof Neirynck's user avatar
5 votes
4 answers
254 views

After opening Waterfox 6.5 (Firefox 128 ESR) back up (days or hours later) the session for my website is expired. However now the browser saves the DOM state and this leads to literally every form and ...
John's user avatar
  • 1
0 votes
1 answer
96 views

I have a page that loads a javascript file. At the top of the javascript file I am declaring my constants for Bootstrap 5 tooltips: const tooltipTriggerList = document.querySelectorAll('[data-bs-...
Murphy1976's user avatar
  • 1,475
0 votes
0 answers
26 views

Problem Environment variables defined in nuxt.config.ts are retrieved correctly, but external scripts (e.g., Google Analytics and Chatway) relying on these variables are not working. The scripts are ...
sofies's user avatar
  • 37
0 votes
1 answer
49 views

Basically I need a less stupid way to do this: var x = getElementById('not-important'); x.parentElement.parentElement.parentElement.parentElement....parentElement.style.display = 'none'; In my case ...
Dan Mantyla's user avatar
  • 1,892

1
2 3 4 5
836