Category "javascript"

How do I change grid-template-columns style with JS?

this is the class I'm trying to change in my CSS file. .screen{ margin-top: 0%; width: 75%; height: 75%; background-color: lightgrey; display: grid; grid-

TypeError: ctx.product is undefined

Help ! I'm getting the following error from my Angular (material) application: TypeError: ctx.product is undefined my service:product.service.ts @Injectable

Fetch and Parse XML data from Live product feed

I am simply trying to extract the data from this XML link I have but I have no clue how to run a query like that neither the second source is responding correct

Material ui date picker formatting

I want show "Today" text instead of DD/MM/YYYY Eg: when we use datepicker browser show something like 20/1/2009 But I want "Today" instead of that date

What is a safe and scalable way to exhaustively select all users from Amazon Cognito API in JavaScript?

I am part of a small team working on a fairly small website with user accounts; there are about 100 users at this time. And we are using Amazon Cognito for user

Google Script to empty emails in trash folder

I was using the below google app script to delete emails automatically from my trash folder. for some reason, this is no longer deleting the emails however the

React showing a blank screen without any error messages (context api used)

I'm building a react Amazon clone, so in order to give the user the ability to add a product into his basket (as the first version of all the future checkout sy

Pagination and filtering in TypeScript and TypeORM

How can i create an function to pagination and filtering with typeorm? I use queryBuilder() but i don't how to create an function to divide the results into pag

React suspense/lazy delay?

I am trying to use the new React Lazy and Suspense to create a fallback loading component. This works great, but the fallback is showing only a few ms. Is there

Update/Reload specific tile in leaflet dynamicly

If my server tells the clients when and what tile to reload/update, how can reload/update the tile sent from the server? I'm using the L.CRS.Simple CRS. And I h

Expo app icon instead of my app icon - react native

SDK Version: 41.0.0 Platforms(Android/iOS/web/all): android Add the appropriate “Tag” based on what Expo library you have a question on. Hi Guys, I&

How to diff two HH:mm:ss formatting in moment

moment(moment("00:00:00", "HH:mm:ss").diff(moment("18:00:00", "HH:mm:ss"))).format("HH:mm:ss"); moment(moment("00:00:00", "HH:mm:ss").diff(moment("18:00:00", "H

amcharts v3 removing "show all" at the top right corner

I have a simple bullet chart and everything works fine except that pesky image with a magnifying glass saying show all at right-hand top corner. Is there a sett

Async/Await in fetch() how to handle errors

I have stripe async code in my React app, and trying to add error handling in my code but have no idea how to handle it. i know how to do it with .then() but as

'X Is not a function' in CommonJS

I've got the following code I transformed from a Trypescript, ESM-syntax based file to a Javascript, CJS-syntax file. const apiClientFactory = require("@vue-sto

aws open search not able to insert data

i have given all the required permission from the aws. this error occurs when i tried to create an index. Error response: ResponseError: security_exception: [se

React Native Text style is not working (Icon Badge)

I tried to make a badge icon with red text, but all the styles I applied to the Text didn't work at all IconWithBade.js import React from 'react'; import {Style

Why my code work fine on chrome but not firefox?

I am creating a split-flap. It works fine in Chrome, but in firefox, during the second rotation period, it is not smooth as in chrome. How can I fix it? let

How to auto populate preferredCountries from intl-tel-input with db output

I would like to populate the preferredCountries:["xx","yy","zz"] with a function that fetches the most used country codes from a mysql db and list them highest

NuxtJS ignore webpack/chokidar watchers for specific file or folder

I'm using NuxtJS' serverMiddleware for logging. It works on every route. import { logger } from './utils/logger'; module.exports = function(req, res, next){