All Questions
12
questions
0
votes
2
answers
52
views
How to make user data persistent in local storage in electron-app?
I'm building a tasks-to-do application using electron. As I'm new using it, I have found a lot of problems to make the tasks already uploaded persistent in the application.
I'm creating the tasks ...
2
votes
2
answers
14k
views
Electron - Failed to load resource: net::ERR_FILE_NOT_FOUND
relatively new to electron area:
I tried a few method to solve this issue such as using ./ instead of / or adding "homepage" : in packaging.json and still won't work.
I was trying to import ...
0
votes
1
answer
395
views
JS/Electron Read json to textarea and overwrite with change in text
I have succesfully read the json and read the variable in the textarea, in this way:
function additem() {
fs.readFile(path.join(__dirname, 'weekplan.json'), 'utf8', (err, data) => {
if (...
1
vote
2
answers
569
views
Getting HTML form values with JavaScript and saving them into JSON key and value pairs
Objective
FrameWork used : ElectronJS
I want to take the user submitted form, and use the NodeJS script to generate a JSON file on client PC. The json file will have key and value pairs.
Please see ...
0
votes
1
answer
650
views
Electron - How to pass JSON from main window to remote window?
I'm working with a total of 3 files.
index.html:
...
<a href="#" onclick="fetch(function(data) {console.log(data); subWindow(data)})">subWindow</a>
...
The fetch() function returns a ...
-1
votes
1
answer
206
views
How can I read JSON file and generate dynamic page using jQuery based on JSON
i am new to this node and json things and I have someproblems getting data out of JSON.
This is my code
'use strict';
const fs = require('fs');
let questsRawData = fs.readFileSync('quests-db.json')...
-1
votes
1
answer
48
views
Electron won't open file from JSON
I'm trying to use the onclick='shell.openItem('filename') with the filename being populated by JSON. When I console.log(data[i].url) it returns the correct kmz file for each button, but when I click ...
1
vote
1
answer
135
views
Electron - another program is using this file?
I created a search bar that searches JSON and displays the info in html with an "open link" button. The files are local kmz/kml files that are opened up in Google Earth when a user clicks the button.
...
-3
votes
2
answers
3k
views
Electronjs "App threw an error during load, ReferenceError: require is not defined"
Developing an application using electron but I'm getting error when I run npm start:
$ npm start
> [email protected] start C:\Users\jakeh\OneDrive\Documents\Coding\Electron Apps\Test
> electron .
...
0
votes
1
answer
63
views
Store JSON information within a HTML file or the other way around
That title might be a little confusing but I don't know how to put it otherwise. I have some JSON encoded data in a .json-file:
{"foo":"bar", "bar":"foo", "far":"boo"}
and some HTML content in a ....
1
vote
0
answers
399
views
Running javascript in Electron Secondary Window
I have created an electron application that has multiple windows that can open ex. an about page and a preferences page. This is what my main.js looks like.
const {app, Tray, Menu, BrowserWindow} = ...
5
votes
3
answers
10k
views
electron quick start application not working
I'm new to electron and trying to follow different tutorials. Currently I'm following this link to Write my First Electron App
my app is structured like this
your-app/
├── package.json
├── main.js
...