Skip to main content

All Questions

Tagged with
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 ...
Jayendra Kamesh's user avatar
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 ...
flololan's user avatar
  • 553
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 ...
bassman21's user avatar
  • 370
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 ...
HaloDonuts J's user avatar
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(...
Ryan Hinchliffe's user avatar
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 ...
user avatar
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 = ...
Ahmetcan Aksu's user avatar
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')...
Coolguy's user avatar
  • 2,275