All Questions
12
questions
0
votes
0
answers
24
views
How to select an item added dynamically via createElement in JavaScript? [duplicate]
Essentially, I'm using JavaScript to add <li> tags with content inside them dynamically to a <ul>. This works fine and great, except when I try to select an element inside that <li> ...
0
votes
0
answers
35
views
Is there a way to get a range object when selecting text with a keyboard?
is it correct that in an electron app - or as far as I can see web-based applications in general - a range or selection object is not created when the text content is selected using a keyboard?
I am ...
0
votes
0
answers
225
views
Dropdown not working the second time when clicked using dom
I have made a navigation tab with buttons, and a side-button which displays a list of files when I click the nav button.
Visual representation:
check1 check2 check3
dropdown (assuming check1 is ...
0
votes
1
answer
321
views
Edit Html Attribute Without ID
Hello so I have this code
<div class="ic-app-header__logomark-container">
<a href="https://iusd.instructure.com/" class="ic-app-header__logomark __web-inspector-hide-shortcut__"&...
0
votes
1
answer
82
views
How can I define document in electron?
the other stackoverflow questions I found didn't help me, so I am asking you. How can I define the document in html / javascript in electron. There is the error: ''document is not defined''.
html ...
0
votes
0
answers
62
views
My loop in JavaScript gets progressively slower while updating the page's DOM
My Electron app contains a page which runs a loop within a JavaScript file. The loop updates every 600 milliseconds using setTimeout. The code works perfectly fine while adding values to a text area ...
1
vote
1
answer
784
views
DOMParser parseFromString removing nodes only when iterating resulting body childNodes
I am writing an electronjs app. I want to parse a string to DOM nodes and try to use DOMParser parseFromString for that. Here is the code:
let str = '<div id="customerList" style="display: none;"&...
0
votes
1
answer
173
views
JavaScript & HTML: onclick button to run javascript function?
I am setting up a GUI server application using electron and socket.io. I cannot get the onclick button in index.html to run the startServer() function in server.js. I need assistance please
I've ...
1
vote
0
answers
465
views
Execute javascript (katex) on tinymce content
I am creating a small desktop editor based on electron.js and tinymce.
For university I also want to be able to render latex equations inside tinymce. Unfortunately I cannot access the tinymce-iframe ...
-1
votes
1
answer
910
views
DOM not updating during long function [duplicate]
I have an electron app where clicking a button runs a mining function, which takes a long time to run. I am trying to display the nonce as it changes as an element on the page. However, when I run the ...
1
vote
3
answers
1k
views
getElementByID keeps returning undefined
Im currently getting the error shown in the title and I've tried to fix the problem with numerous solutions found on stackoverflow but none have worked as of yet, any suggestions/help would be ...
1
vote
1
answer
6k
views
How do I access the DOM elements in Electron?
I'm new to Electron, and I'm trying to do a function from a click on a menu. Here is my example.
index.html
<!DOCTYPE html>
<html lang="pt-br" dir="ltr">
<head>
<meta ...