All Questions
8
questions
0
votes
1
answer
171
views
Electron js, How to pass variable from main.js to html template?
I am a beginner to javascript & electron js. Im creating a todo list manager. Im trying to pass this list of titles retrieved from sqlite todos.db, and populate it in a selection menu. I am not ...
1
vote
1
answer
394
views
("Document not defined" in renderer.js) - Sending data and rendering it in electron
I am trying to create a Debug app for Body Positioning Data. This data is received as JSON via MQTT in my receiveAndConversion.js. I was able to receive the data properly and print to console. So far ...
0
votes
1
answer
571
views
What is the "best-practice" approach to "switch between pages" in an Electron app?
Spontaneously, I see two options to "switch between pages" in an Electron app:
Option 1:
Usage of hyperlink like <a href="...">...</a> in the html-file currently being ...
2
votes
0
answers
158
views
Electron: Cannot find DOM elements from child window
I am trying to send a parameter and its property from the main process to the renderer process, then append that property value as a string onto a div in my html/ child window. However, the renderer ...
0
votes
0
answers
286
views
With Ipc Main and Ipc Render how do you send a whole form?
I understand that to send information you do
let {ipcRenderer} = require("electron");
ipcRenderer.send("the-form", "the information");
and then receive it by
ipcMain.on('the-form', function(...
1
vote
2
answers
879
views
<script> require('renderer.js') </script> - does not connect the js file
Using Electron, I'm trying to organize IPC between main and renderer. As instructions say I should add the script (see the title) to the index.html. But it doesn't look like it is loaded. Nothing in ...
6
votes
1
answer
5k
views
Electron.js ipc.sendSync Frezees
Hi I'm requesting two results from the main process but when I click the button, the app keeps freezing. Even devtools is not working .
Main.js
ipcMain.on('fmail', (event, arg) => {
var fmaile = ...
4
votes
2
answers
11k
views
Retry loading a webpage when failed in electron
I'm using electron to display some webpages. Below is my coding:
var app = require('app');
var ipc = require('ipc');
var BrowserWindow = require('browser-window');
var settings = require('./settings')...