Category "javascript"

How to Keep checkbox previous state after refreshing page

<div class="col-sm-12 form-group mt-15"> <label class="active">Blood Group</label> <span style="float: right;"> <input type=

How to detect letters and theirs upper/lower case format from two characters which need to be compared to each other?

I need to get: If either of the characters is not a letter, return -1 If both characters are the same case, return 1 If both characters are letters, but not the

What domain driven design mean for Javascript applications on the client side?

What domain driven design mean for Javascript applications on the client side? I want to build an application based on ddd approach with javascript. The framewo

Looping through multiple collection of arrays

I have a lot of data as response not parsed and also, so you can see what is in the response. But I want all the scores from the table results, the query filter

Vue app shows blank when accessing through network on development mode. Seems like it's not rendering

I'm building a website using VueJs and it works perfect with no errors on the localhost, and I can access it locally in the same computer using the IP address a

Assigning ScrollTo value cause unexpected flickering/blinking on iOS devices

We recently worked on an auto-scrolling while freely swipeable component using React.js. The implementation idea is inspired by this article And we've made some

invalid url for nextjs image

I am writing the frontend of my application with nextjs I am trying to load image from the public folder but I am getting invalid url I copied the image to the

Meteor Catcher isn't running, not sure why

I was creating a meteor catcher game for my school project, I created the meteor catcher game and a restart function when you press your mouse. However, after y

Pass headers in JSON.stringify

I have a try… catch statement in my code and when there is a catch I want to send a message to me for debugging. Unfortunately I am having a bit of troub

How to create a global string in a vue (webpack) project

In my vue project I have a default image that should show up in places around the app when an image is missing or hasn't been uploaded yet. I have various class

Need a Click and Drag solution using Vanilla Javascript without jQuery

I have to do a click-and-drag solution for a background image in Vanilla Javascript for a project. I found this solution using jQuery in Codepen. Can anyone hel

Vue 3 - "Failed to resolve component" with child component

I have this SocialNetworks.vue component <template> <div class="socialNetworks"> <SocialLink to="https://twitter.com/" icon="twitter.svg" n

Ability to load component while axios

Is it possible to do the following: There is a spinner component. axios: method() { SPINNER (component) -- on axios.get('/shop', { params:

While loop not terminating even after the 'return'

I am using the while loop to iterate through an array and trying to terminate the loop using the return (I tried foreach before which doesn't terminate for retu

call javascript void in angular

I am using an html template for a website in Angular This template uses JavaScript to perform page elements. My problem is that when I use ngfor to create an el

How to find element from html with jQuery

I have a table with checkbox option for each row. For each row I have href (dedicated link) handled by HTML file. I have created a button called: "download" by

ethers.js Contract object gets error: Uncaught TypeError: Cannot read properties of undefined (reading 'map')

I hope someone can enlighten me. I have a website with a button which should create a new Contract object of my token contract via the ethers.js library. I succ

Can't pull sqs queue name from .env file in nestjs

When pulling the queue name through .env file I get the following error on the console: Cannot read properties of undefined (reading 'meta'). How can I pass que

How to subscribe a new member to mailchamp using node.js and express

I am trying to work with an API, specifically mail-chimp API, but the problem that I am having is: const express=require("express"); const bodyparser=requir

Fastify - How to get non-file fields using fastify-multipart

How to access text from request that are non-file fields? (I am using Insomia) Our request using Insomia We are able to access file fields by looping through p