Category "javascript"

Please explain the purpose of the bitwise or in this javascript function

I am converting a javascript function to java, and don't understand the purpose of the bitwise ors in the code below: (Math.tan(PHId)) ^ 2) - is this ensuring t

Nuxt.js using Vuetify and Vite causes "__createCJSModule__(...) is not a function" error

The problem: When creating a new Nuxt.js project using Yarn as the package manager and using Vuetify and Vite as build modules I get the following error in the

Uncaught ReferenceError: process is not defined after upgrading from vue cli v4 to v5

I'm working on an app where I've updated the frontend to use vue cli v5 from v4 and am getting a runtime error: Uncaught ReferenceError: process is not defined.

hello I am getting an error that shows up in discord modal it tells Something went wrong. try again discord.js

Hello I made a mail command which would take message from modal and send it to a mentioned user but it gives this error in modal window and does not log anythin

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 * {