Category "javascript"

Send Response to one Room does not work (Nestjs & Socketio)

My goal is to emit to only one client by using the default room that is being created by socketIo. The room id and client id match. I checked that by logging it

How to set req.body for a video tag?

I would like to set a req.body parameter for the request that the video tag is requesting. The Video tag requests at a certain route to request a video stream.

Remove specific HTML div when click on delete button using vuejs

So I have some input fields which are repetitive to fill different data. For every repetition, I also have a delete button. If I click on this delete button, th

Alfresco Add Category based on Tag

I would like to create a script to use as a folder rule to add a category based on the tag. This script successfully adds the category to the file. var catNodeR

Babel doesn't ignore snapshot folder and files

I'm using the following npm build script with Babel 7; "build": "rm -rf dist && babel src/lib --out-dir dist --copy-files --no-copy-ignored", And this

ImageMagick lambda layer aws SAM

I have the following template.yaml from a SAM application AWSTemplateFormatVersion: "2010-09-09" Transform: AWS::Serverless-2016-10-31 Description: > image

Emmet for React.js Classes: "styles.something"

I am a React developer using VSCode. When you type .hello, it inserts<div className="hello"></div>. However, that is useless because my classes are

Update or create row based on ID - Google Script

It's been several days since I'm stuck on this problem. I've tried everything I saw but I think I miss some logic of the Google Script. I have a php form which

How to get the current month and the next months until next year in javascript

so I want to get the current month and the next 12 months in vanilla js. For example, upon writing this question it's April 2022, So I want to have this output:

PDF file sent from flask to client is empty when downloaded

I have a flask server that sends a pdf file with the send_file function. When I test this route on postman I can view and download the pdf. However when I try t

Plaid - PAYMENT_STATUS_INPUT_NEEDED

I've got Plaid payment initiation working on my cart but for some reason, all payments have the status of "PAYMENT_STATUS_INPUT_NEEDED". Also, I can only get Pl

How to make whole html input type date field clickable for calendar popup?

In the HTML input type date field when we click on an icon, the calendar is popup. But I want to make it pop up when we click in the dd/mm/yyyy field?

How can I assign a JS function to a list of tag that are generate with a loop?

I have a loop in my twig file : {% for item in listItem %} <h2 class="title" id="name-id"> ID {{ item.getRobotName() }}</h2> <p id="latbot" data-

Lodash-es with Typescript and Webpack module error

I want to use lodash-es to be able to import only the functions I need, but I get an error. import { camelCase } from "lodash-es"; //... console.log(camelCase('

How to use the draw and keyTyped() function at the same time?

I want to create a code where when I click a key on the keyboard it will play music and draw a rectangle. I have managed to add music using the keyTyped() funct

Get array of object's keys

I would like to get the keys of a JavaScript object as an array, either in jQuery or pure JavaScript. Is there a less verbose way than this? var foo = { 'alph

Animation css for the last element added with js and Vue

I have an array in which I put all the elements that have the class Box, then I add a new div with Vue, which is added correctly, but I try that the last div th

how can i get the specific info about a user

i'm working on a web app in which a user can create an address when logged in, how can i get the current logged in user address which was created by the user th

TypeError: Cannot read properties of undefined (reading 'document')

I was using qraphql (JavaScript graphql-request library) in a project and ran into a typeError. Here's the code: import { request, gql } from 'graphql-request'

React Image Rendering using require()

I'm trying to render images in react using require(). Below is a snapshot of the code that is working. const ProjectBlock: React.FC<{ data: PROJECTBLOCK }>