Category "javascript"

how to set Google Maps marker position with the address?

I'm fairly new to the Google Maps API and have to use it to locate some addresses. I want to know how the Google Maps marker can be located with the address wri

use the same key in both render and main process electron?

I am recently learning electron I have encountered a problem that I want to listen ESC in both process, In Main process, menu.append(new MenuItem({ label: "

How to create a file inside a folder?

I have fileUploadPath="d:/downloads"; and entry.name='155ce0e4-d763-4153-909a-407dc4e328d0/63690689-e183-46ae-abbe-bb4ba5507f1a_MULTI_0_3/output/res2/res2.fcs

I have to double click the follow button to functioning this is due to using click event 2 time

I am working on follow button and with the help of JavaScript I've come up with the following code. But the problem is I have to double click the follow button

NodeJS/React install xpi file instead of downloading it

Situation : 1.My nodeJS server serves a file like so : fileRouter.get('/firefox', async (req,res)=>{ const mime = 'application/x-xpinstall'

How to set initial data for CKEditor5?

I can't find a simple example on how to set initial data in CKEditor 5. In some SO questions, it's said that we should use setData API. But those examples are A

Highlighting text (user input)

I'm trying to involve coding a simple component to highlight substrings of text provided by a user but I'm getting errors when I'm trying to get the value from

When to query inaccessible elements by setting role vs testId vs DOM container in React Testing Library

I understand that the React Testing Library approach is to query for DOM elements in a way that makes sense from a user's perspective (e.g by role or visual tex

Show multiple ads in middle of article post in blogger with shortcodes

I want to show ads on blogger posts using shortcodes. With the help of shortcode, I can add multiple ads like 4 to 5 ads in the blogger post. But I don't know h

Importing Firebase database object in React results in Uncaught SyntaxError: Cannot use import statement outside a module

I'm working on a project where I need to implement Firestore database in a React app, which I do like this: I have a firebase.js file in the src directory which

How to fix Uncaught TypeError: Cannot read properties of null (reading 'addEventListener') [duplicate]

I am adding an event listener to an HTML element, so that when you click on it the drop-down displays, but for some reason, I get the Uncaught

How to filter without using the filter method in javascript?

I have to convert 2 functions, both using filter methods into something using for loops, how am i supposed to do that ? For some case, it makes sense, but using

Hide Textbox with parameter name completely when the checkbox is disabled in UI

When I enable the checkbox, I've written a js function to enable the textbox to be adjustable; otherwise, it must be greyed out. Changes Made: When I enable the

How to Fix the TD elements of first column of the table body while the rows are scrolling?

The title is not clear, I know. Let me explain what I mean: First column has td elements which have varying rowspans. What I want is to keep the td text in firs

Filter by value in checkbox popup in Mapbox GL

I have changed my mind about how I want to use the Checkbox filter in Mapbox. I am using CSV2Geojson to map Google Sheets data in my map and then filter by valu

How to customize the color and fonts for microsoft Adaptivecards Input.choiceset

I'm using v1.2 of the AdaptiveCard SDK in BotFramework Webchat. I need to customize the color of the values of the Input.Choiceset of the Microsoft adaptive car

Integrating Frontend Javascript with Backend Node.Js and mySQL

I have tried searching around, but could not really find a solution to my question. Either that or I am not really understanding something properly. I have a pa

Override variable type from external library

I am using a third party library for my react application. There are some incorrect/outdated types. Let's say the library has the following type declarations: d

Qualtrics programming question (using javascript to create a bipolar slider)

I need to use bipolar sliders for a series of questions in Qualtrics. I saw some code on the Qualtrics community website to help get a label on the right hand s

How to set decimal input range using javascript or html?

I have an input and I need it to be limited to only these values: Min: 0.01 max 999.99 If I use maxlength="6" I can enter, for instance, 999.99 but also 1000.1