Category "javascript"

Unable to find svgs assets with Parcel in React and TS

I've added parcel to a create-react-app project that uses the typescript template. I'm trying to add svgs to my outputted js file following the recommendations

jso.numfields not returning anything within Excel VBA while connecting to PDF file

So I am trying to write a VBA Macro in Excel that will loop through all 400+ .pdf files I have in a folder, extract pertinent data from them, and store that dat

Why a click on svg element is not captured by node contains method?

I have a basic modal with a svg icon within its html structure. I want to detect clicks outside the modal so I can close it. The code to do so is something like

Electron App : Unable to load preload script

Been getting this error every time I start up my electron app. electron/js2c/renderer_init.js:91 Unable to load preload script: C:\Users\Desktop\Projects\Electr

How can I import image file with react?

I have a images files but react is not take them ı cant import like that. Otherwise when i try <img src={require("/FileAdress")} className="Logo" alt="l

ReactJS Can't get value of something because not rendered yet, but the function where i get value is called in the rendering

in my React app, I am making a contact form. At the moment I am trying to make it actually send an email, but the thing is that the function where i get the val

save map bookmark for each user login using .net and javascript

I want to create Bookmark widget, and I want each user can save his own bookmarks. and when login to the application can see only his bookmarks. for this I have

How to make shaded error bar region in d3/visx

I would like to make a line chart in the visx library with shading used to represent the error bars region. Here is an example of what I mean: example. Instea

Change color in a number of different divs that all share the same class

I have a site with a lot of different div. The thing they have in common is all share (besides their unique classes) a shared class. Lets just call it .changeCl

Why does an async function finishes executing after a promise started later?

This is something about the event loop I don't understand. Here's the code: async function async1() { console.log('async1 start'); await async2(); con

NextJS: load global plugin in Mongoose before model creation

I have a folder structure looking something like this root/ pages/ models/ User.js utils/ plugin.js dbConnect.js I want to be able to load th

Create a VSCode style menu in electron

I am exploring electron for the past week and I come across a question about how can I create a costume menu in Electron just like VSCode does have it. Just lik

How to send zip Files to a Node Server via HTTP POST? (server always only receives "{}")

For my Bachelor's Thesis, I am writing a program to visualize personal data requested via GDPR Art.20. Since this kind of data is normally zipped, I need to be

Populate data in pdf using django

I have to show a certificate in modal with the 2 option print and email. Certificate is pdf file i just need to fill two fields in the certificate user name and

How to extract data of cell clicked grid.js

I am using Grid.js to render a table in react. I need to extract the data in one of the cells. When I map the args, I get two results back....a MouseEvent and '

How do I insert html into the body of a page for a bookmarlet

I'm trying to make a bookmarklet for a game mod it includes a UI and I'm not sure how I can make it into a working bookmarklet where your UI would overlay on th

DiscordJS v13 Invalid Form Body

I am trying to make a toggle able slash command, if they pick the disable option it turns it off but when if you pick the enable option it asks to pick a channe

Failed browser "fetch" causes second unrelated fetch to fail

I've stumbled about a strange bug that I can't wrap my head around. In an application I'm working on, due to an error, a fetch with a way to big URL was trigger

UI Search returns Bad Request Error in JavaScript

I am trying to search for something like this in my UI {"attribute":"country","name":"United States"} and have it return display this: id:c78980559a3450f400e07

How can I select a selected item from one array from another? AngularJS

Please help, I don't understand how I can select a selected item if it comes from somewhere else and is in a different array. If this is not possible, is it pos