Alexius | Alexius - A crowd source based Review System | Code Inspection library
kandi X-RAY | Alexius Summary
kandi X-RAY | Alexius Summary
Alexius - A crowd source based Review System.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Alexius
Alexius Key Features
Alexius Examples and Code Snippets
Community Discussions
Trending Discussions on Alexius
QUESTION
hello im noob here practicing backend im try to build simple windwos app using electron and electron-db (https://www.npmjs.com/package/electron-db)
but when im trying to save user input in to db row but i cant use input ID as value in insert query
my HTML
...ANSWER
Answered 2022-Feb-23 at 23:40Noting that electron-db
is used in the main thread and you need to get your form data from the render thread to the main thread, you will need to use a process called Inter-Process Communication.
To do this safely and securely, you need to become familiar with Context Isolation.
Ok, let's step through this one file at a time...
First off, let's look at the code in your html
file.
The majority of contents of the
type="button"
as we do not need to natively "submit" the form, only detect when the button is clicked. This also allows us to remove the event.preventDefault();
line further down in the code.
Now, let's add functionality to the
The 'glue' that will allow your whitelisted channels to communicate between the main and render threads is call the preload
script. It is called during the construction of your window. Here we add a 'channel name' to identify it, which in turn will allow it to pass through.
Notice that I used a
name:function
format so it clearly defines the channel. Useful when you have a lot of channels.
preload.js
(main thread)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Alexius
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page