All Questions
193
questions
0
votes
2
answers
120
views
Error when Loading js file in HTML. HTML unable to load my js file
I tried loading js code in html but no js functionality is reflected in my code.
here is my html snippet
<!DOCTYPE html>
<html>
<head>
Point Of Sale
<link href="css/...
0
votes
0
answers
51
views
jQuery is not defined, even thought it clearly is [duplicate]
Here is the error message from the browser console:
Uncaught ReferenceError: jQuery is not defined
at code.js:6:1
I just have a simple function utilizing jQuery, which I have put into the document....
1
vote
1
answer
51
views
How to display Bootstrap modal in Electron?
Trying to display Bootstrap Modal in electron.
I have installed jquery and bootstrap modules.
Then wrote following code in .js file.
const $ = require('jquery');
require('bootstrap');
$(document)....
0
votes
0
answers
183
views
Downloading and saving .tar.gz file using ajax and fs in electron
I am trying to include auto-update feature in my electron app but I am struggling to download and save a .tar.gz file for the latest release using GitHub API. Here is relevant code snippet:
// check ...
0
votes
0
answers
237
views
How to enable/disable the caps lock or num lock key using nodejs or angular?
I want to handle the CapsLock and NumLock key using angular or node js. So is there any way to do that?
I have tried the dispatchEvent but it does not working.
-1
votes
1
answer
64
views
svg fill animation with height with javascript
i want this animation gradient with JavaScript which is currently work with CSS. like gradient animation through height in both svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" ...
0
votes
1
answer
112
views
Issue with Electron
I just start developing and app using electron. I have an issue when I attempt to export a function.
Basically I have my utils.js file that contains common function used across all the code and I am ...
0
votes
1
answer
406
views
I am creating electron app and getting Uncaught Exception: TypeError: $.ajax is not a function
I am creating electron app that hits an endpoint from API and shows the response on the page. Since electron separated the main process from the renderer process I have to use preload script to ...
0
votes
0
answers
57
views
How can I store 2 different cheerio parsed objects into variables to work with them simultaneously for comparing them?
In an electronJS app's "main.js" file on server side, I am using cheerio package for parsing the contents read with fs from 2 different HTML files, where both contain (various, but let's ...
0
votes
0
answers
230
views
Uncaught ReferenceError: require is not defined trying to use Powershell in Javascript via Electron
I have updated this question fully as a few people have directed me to other posts with the same issue. Unfortunately, I have tried NodeIntergration and Contextisolation.
From what I can see it is a ...
0
votes
0
answers
51
views
How can make my React.js project downloadable on Desktop? [duplicate]
Good afternoon all,
I am a new programmer and I recently started following a music-player tutorial, and am experiencing a couple of issues with it.
Project Overview:
As previously described, it is a ...
1
vote
2
answers
820
views
Javascript function not defined SVG element on click
I have a svg with say just rect element in it which has inline javascript function call on click.
I have embedded svg in my html (electron based) using object tag.
The problem is if I write javascript ...
1
vote
0
answers
55
views
ElectronJS Jquery and IPCRenderer / It doesn't work / Can't run it together
I'm trying to make a simple desktop application for my colleagues at work to use.
I designed the interface and I am using webview.
I removed the frame with the frame: false command, made a custom ...
0
votes
1
answer
2k
views
How to read a button click event in electron js? [duplicate]
I have an electron js application which loads www.example.com website in a windowless chromium browser. Am trying to capture the Submit button click event from the page like below
document....
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 ...