Category "javascript"

express-session unable to retrieve session variable

I am using express-session to store my sessions persistently on a MongoDB database. The project worked perfectly in a development environment but for some reaso

Best way to structure deep time-series data in MongoDB?

I'm migrated from MySQL to MongoDB and looking to optimize the storage of my time-series data. Each item in my database has an array of values for multiple loca

Echo from video recorder/player (On page load)

I have a video player and recorder that allows the user to record themselves, play back the video, and download. The code renders: • Two video players vert

Laravel livewire display session message with javascript

I am trying to submit a contact form using laravel livewire like: public $name; public $email; public $phone; public $message; public function submitForm() {

React Native Render Error: 'Target Container is not a DOM Element'

We are building a React Native application, sort of like a marketplace for different services and products. Our current problem is concerning using the BottomTa

Invalid Key Length in NodeJS, but Valid Key Length in C#

I'm converting Rijndael decryption from C# to NodeJS. The Key (or Passphrase) used is 13 characters long. The IV used is 17 characters long. Note: I have no con

How can I filter data in a react redux app gotten from an api

I am fetching data from an API and displaying it in NearestRides component(it gives a nested object). I need to filter the data based on state or city selected

Tell JavaScript my array is sorted when searching for an element

I have an array of objects that I know is sorted by one of the object properties. I want to look in the array for the object with that property equalling a spec

Using innerText without async in puppeteer

i was creating a certain code of puppeteer ,and i wanted to know if there's a way to get innertext or innerHtml or textcontent while using puppeteer without an

Change bootstrap multiselect values based on another select options, using jquery

I have a simple form created using HTML and JS. There are 3 select elements that the options of the second and the third select elements are based on the first

Why does the filter method not seem to work the same way as splice does in this todo app?

I have a todo app in JS with the following functions: This is part of a function that passes an id into an event listener to remove a todo removeButton.addEvent

How to add overlay to sidenav menu?

I have a sidenav menu with some Js, I would like to add the overlay but I don't know how to do it, sorry but I'm a beginner. I tried several ways without succes

Alert inside websocket open event

I have this code that alert("open") is displayed ok. var webSocket = new WebSocket("ws://localhost:8080/WebSocketServerExample/websocketendpoint"); webSocke

How can I link to an Excel file on a network share from a php web page?

I am trying to link a file on a php webpage which is hosted on a server within our local network using IIS. The workbook must load via the network location and

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