Category "javascript"

Why is it appearing for a split second? javascript

I'm new to coding and am trying to make a game for school, when i submit my name into a text box it is supposed to proceed to the next page but it only flashes

Convert deprecated @include with regular expression to @match in userscript

Tampermonkey has a deprecation warning in for the @include statement for my user scripts: // @include /https\:\/\/([a-z\.]*\.)?(((stackexchange|askubuntu|superu

How to ensure that a job is processed only once with Firebase

I am adding tasks as Docs in a Firestore collection. On the Backend, I have multiple NodeJs stateless instances that process these tasks. All the instances are

Return Array After For Loop

Having a hard time understanding for loops in arrays. Trying to create a Thank You card creator and these are the steps I'm trying to follow: Create a new, empt

how to create a discount removal link in shopify

I am trying to create a discount code form for my ajax cart and for that i am creating a discount code link that will add and remove the discount code in the ch

How to invoke awaiting js fuction in razor pages c#

I'm using SignalR. I want to send updating request by websocket for each elements in foreach to update timer. But i'm getting error.Maybe connection can not get

Hwo to change dynamically the last two parameteres?

I have the followng string https://picsum.photos/id/1025/4951/3301 I need to replace here the last two numbers 4951 and 3301 with 200 so at the end i will have

Replacing System.Windows.Forms.WebBrowser with Microsoft.Web.WebView2.WinForms.WebView2 in WinForms apps

I am upgrading a WinForms C# .NET 4.8 Framework application and replacing the embedded browser System.Windows.Forms.WebBrowser with Microsoft.Web.WebView2.WinFo

My timer in Reactjs is not working correctly with a delay

My timer in Reactjs is not working correctly with a delay... I noticed that over time, my timer starts to lag if I switch to another browser tab or window. Why

Firebase signInWithEmailAndPassword and onAuthStateChanged Realtime Database logging issue

I'm working on a webpage using HTML5 CCS etc, where it uses a authentication process using firebase for users. Its my first time ever working on firebase, so i

React difference of using value in state vs value in object in state

I am getting different behaviour depending on whether I am using a boolvalue on with useState, or whether I am using a bool value inside an object with useState

Extending Vuetify's VBtn component to create a reusable icon button component

I've been using the example Codepen (https://codepen.io/whoistobias/pen/yLNgjwy) to try to extend the Vuetify VBtn component to create a reusable Button Icon co

Minimize chrome ribbon button in python selenium

I have python selenium code to expand chrome button as mentioned below. button.click() And it expands button like this: Now I want to minimize button. Is ther

Proper way of dealing with returning from a fetch

I'm a bit new to coding in a JS/TS way and I just wanted to know the best practice when it comes to returning and handling void and values that come from a fetc

How do I connect to JawsDB (add-on) with a Github deployment (javascript program) on Heroku?

I have tried my best to debug this issue for the past few days with no luck. I am a beginner so there could totally be simple things I just didn't know. So I ha

nested forEach not working with append HTML

Nested forEach() not working with append HTML. Data is coming properly fine in console but not properly displaying with append HTML. My Code:- data = { re

Chrome manifest v3: runtime.lastError specify 'func' and 'files'?

I'm searching for a solution everywhere and I can't find nothing about this error. I'm trying to "update" a Chrome extension to manifest v3 and I get this error

How to make a Walkthrough Introduction Slider in Ionic Vue Application?

I have seen most of the mobile application has an intro slider when we first time installs the app. I searched on google but all of them are old version of Ioni

How to add custom indicator in trading view Charting library in reactjs

I have trading view charting library i'm working on it but now i want to add custom indicator in it but i don't know how to do.

How to make function get particular error in JS

In form, there is <input type="hidden" name="forcesave" value="0" id="forces"> which lets me avoid validator: if (\Frame\Validator::cidr($data['ip