Category "javascript"

express.json() is an unknown property

Typescript doesn't recognize the express.json() function although many tutorials state this code should compile as it is. Is there something I have done wrong?

Issue With Binance API Fetch In Chrome

My Code Works Fine In anWriter App But Doesn't Work In Chrome Browser ! It Freezes After Reaching The Fetch Line In Account_Fetch Function ! If Code Works Fine

SCADA using Javascript?

Supervisory Control and Data Acquisition There is a way to make SCADA using javascript? I can create assets using Solidworks, and other apps..

testing directive with jasmine

I have this directive but Im struggling with the jasmine test for it, any ideas? import { Directive, Output, EventEmitter, HostListener } from '@angular/core';

New url is not opened in a new tab

I have this code : <b-btn variant="primary" class="btn-sm" :disabled="updatePending || !row.enabled" @click="changeState(row, row.dt ? 'activate'

Certain DOM Manipulation doesn't work with passport js

I realised when I am not logged in on my website certain DOM elements don't work. I am using passport-local implement auth on my website. For example when I pre

Nuxt/Vue Printing in Safari

Calling window.print() in a function fails to bring up the Safari native print window. This does however work in Chrome. I've tried: Attempting to follow this l

Auto-submit django form without causing infinite loop

I have an issue on my app that I can't work out the best way to approach the solution. I'm learning Django and have little to no experience in Javascript so any

JS table sorting fail on Chrome

I am working on a website that allow people to participate in an online race on erg rowers. I display a large table (600+ rows) containing rank, name and other

Recurring Event between date range in JavaScript

Basically, I need to create an Event, every event will be associated with the fields startDate and endDate. "name": "First Event", "teamName": "Team A",

How can I compare 2 nested objects, subtracting the differences & returning the equals?

I have the below 2 variables. const val1 = { students: { grade: [ { subject: "Math3", name: "jack", mark: 60,

how to copy github's overview page

For a project we are replicating githubs profile page. My question is how would I get the customize my pin link module to show my data? its rendering 4 buttons

How to close a div on click in vue js?

I have added a close button to a div in Calendly popup in VueJS and I want to close this div when click on the close button. How can I do this? This is my Calen

Grabbing Nx root package version into workspace package.json

Besides hardcoding, is there a way/shortcut to programmatically get a matching package & version from the root level package.json? I’m creating a gene

Deploying Out folder in NextJS 12.1.0

Before the new version 12.1.0 of NextJS when i ran the command run build && export i would get this Out folder, which I could upload to any host, for e

Why browser is not setting the cookie sent from my node js backend?

I'm trying to set a cookie from the backend server running at "api.mydomain.com" like this to the frontend running at "mydomain.com". res.cookie('auth', tok

How to scroll down intro element view with selenium+javascript

Im just new in javascript. I used to work with selenium+java. Now I want to perform scroll using JavaScriptExecutor. How do I make it in javascript code instead

How to trigger animejs on a specific Swiper slide?

You can see my code using this sandbox: https://codesandbox.io/s/strange-shtern-e98gvu?file=/src/App.js Basically, what I want to do is play the animejs animati

Mousedown event not added

I'm adding an event listener but listener didn't added and i have no errors. I'm going to make a word game. And the problem is so weird const alphabets = ["

how to set labeloffset dynamically in chart Js

I am using Chart.js, I have to generate stack bar chart based on fromMonth to toMonth selection. My bar chart option is: { "chartCanvasHeight": "200", "char