Category "javascript"

Navbar isn't turning red when I scroll down

I am trying to make it so when I scroll down in my webpage it will turn the navbar red. when you are at the top of the page it blends with the background but wh

Masonry JavaScript layout Disable and Reactivate problem with if

Can someone help me plz, I want to use masonry JavaScript when the screen is bigger than 800px and destroy/ disable it when screen is less than 800px. the probl

Put the cross on the top right page instead of the left

how can I put the cross on the top right side of my page? For now it appears on the left side. .close { vertical-align: middle; border: none; color:

how to apply numeric validation

I want to apply validation for integer but it's not working function fnAllowNumeric() { if ((event.keyCode < 48 || event.keyCode > 57) && ev

Data from new HTML form input field not being passed to email using PHP and JavaScript

This is my first post on the site. I added a new input field to a previously working HTML contact form in order to collect the user’s street address. Alth

Sort Any XML Tags using Plain JavaScript or with any Lib

I am looking for a solution to sort any XML tags like: It should Sort child tags under the parent. Here Node* are under root and A,B,C under Node*. So Node* sho

error when installing windows-build-tools and nodejsv 18.0.0

With python2.7 and buildtools installed manually. Python is in the path npm ERR! gyp verb clean removing "build" directory npm ERR! gyp verb command configure [

Why my setPin in scrollMagic don't pin in react but in normal html it works properly?

I have a problem in reactjs wherein My setPin don't work properly in reactjs but in normal html it works properly... Basically the code was something like this

Parsing recursive json, from markdown AST

Recursive functions are not my forté, and im pretty sure thats what is needed here. I have a nested json object, which represents a nested checklist It i

How to use react-big-calendar only for month view

I'm trying to use react-big-calendar, only for viewing the month and allowing the user to press a certain date, which should trigger my own function. That is I'

How to Move an HTML Element after another element with Javascript [closed]

I need to use Javascript or Jquery to move a div to a different place in the DOM tree. for example, I need to move shopByType after ShopBycolo

javascript canceled request after 50 seconds

Describing of context: java app (running under wildfly) works under high workload and heap is almost filled. Because of that full GC runs often and this leads t

Redux createStore() is deprecated - Cannot get state from getState() in Redux action

So, the createStore() Redux is now deprecated and configureStore() is recommended from @reduxjs/toolkit. I'm pretty sure it's related to not being able to get u

Google script - Service error: Spreadsheets

As of a couple of weeks now, I'm getting a "Service error: Spreadsheets" error when running a script in Google Sheets. Before that, it was working fine. It's su

PHP / JS - Firefox Cookies Expires not set

This is the way how I set cookies in JavaScript: function setCookie(cname, cvalue) { expires = "expires=2147483647"; document.cookie = cname + "=" + c

how to create an effect just before displaying a web page

hi i tested this piece of code found on stackoverflow here without success... I manage to use 'Swup' for the transitions but not for the arrival on the page * {

Regex to match if at least one match is found

I am writing a program for users and their different permissions. One user can have several different permissions, but the problem is that some permissions are

Getting "Failed - File incomplete" in Chrome when downloading file from MongoDB

My JavaScript application allows users to download a file. The page shows a clickable link to the file. The file is stored in MongoDB. When I click on the link

twilio error "accountSid must start with AC"

const express = require("express"); const app = express(); const PORT = 3000; require("dotenv").config(); const accountSid = process.env.TWILIO_ACCOUNT_SID; con

I want to create an html element, using javascript, with content drawn from two initialized arrays on page load

I want to create an html element, using javascript, with content drawn from two initialized arrays on page load. This is how far i have gotten but, aside from t