Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Browsing index pages (147290 articles)

How should i remove the extra space in the code using antigravity ide [closed]

enter image description hereI want to remove the extra space before each line so it look clean and standard. I am facing the issue while writing my code as appeared in the image and this does not looks...

View Article


Image may be NSFW.
Clik here to view.

Discord bot responds multiple times for one event

I want my bot to respond once to a command such as .on. However, it responds multiple times per input:The code is:client.on('message', message =>{ if(message.content === '.on'){...

View Article


How to apply debouncer on change function jQuery?

How would one apply debouncer on this jQuery function. So far it makes no call. $('.make-ajax-call-js').on($.debounce('change', function (e) {//whatever ajax call}));I have debouncer script included in...

View Article

Build update from Server to Client

I’m working on a web application where the client/browser caches static build files (JS, CSS, etc.) for several minutes to improve performance and reduce unnecessary requests.The problem occurs when a...

View Article

Javascript is having problems with moving divs around

Here's a function:function rollImgOnSwipe(direction) { changeDirection(direction); rollImage(direction);}The first called function (changeDirection(direction);) is supposed to place a div in either the...

View Article


How to make Darkmode Js Unsticky?

I am using Darkmode.Js for my web site,but it get's stuck at the bottom left of the page.I want that when I scroll down the page, the darkmode icon should not scroll down.How can I make it unsticky and...

View Article

How to make page loading feel faster?

I want to decrease the time taken by my pages to load and be displayed, assuming I start with an empty browser cache, and the pages may or may not have inline CSS and JavaScript in the html file. Does...

View Article

Bootstrap scroll-down when the user clicks the button

How to use the page-scroll down like in this example without any connection using a nav bar, especially on the JavaScript part?What I want to happen is like in the example: once the user click the...

View Article


Webcrypto AES-CBC Decrypt: Operation Error - The operation failed for an...

I have the following code to decrypt AES encrypted data with the Javascript Webcrypto-API, but it results in an "OperationError" with the message "The operation failed for an operation-specific...

View Article


hide specific div from iframe jquery

i'm creating webview application using phonegapi'm using iframe method to show my website inside applicationi need to show popup message for mobile browser users to download applicationso i create...

View Article

How to watch a file and inspect its execution by Node without reconnecting...

When executing node --watch --inspect-wait=0.0.0.0:9222 file.js, NodeJS waits for the inspector (Chrome DevTools) to be attached. When attached and after executing file.js, NodeJS waits for the...

View Article

Sending GET Request when Button is Clicked

I'm attempting to send a GET request as soon as a button is pressed. As I'm quite inexperienced with HTML and JQuery/Ajax, I'm a little bit confused as to how to do this. My code is as following<div...

View Article

IntersectionObserver with bxslider background-image slideshow behaves strangely

It does lazy load the images, but when i resize the browser, the image is gone and i see the black defined for class bxslider. The observed element has the class lazy-background-loaded. But there is no...

View Article


How to get the text inside a label tag on a click event?

I am trying to get the text inside the label tag on a click event of the label. Here is my code.import React from 'react';class Todo extends React.Component { constructor(props) { super(props);...

View Article

Move player using keyboard in javascript

I am making a web game (not with webGL, but with html elements) and I need to move character with WASD keys.I tried these things:Used event listeners keydown and keyup.Problem is that it is...

View Article


Trying to make div move on screen on keydown

I'm trying to make a game where the player has to navigate a mouse through a maze to find the block of cheese. I'm having some trouble getting the div to move how I want it to. The problem is when you...

View Article

How can I get "stringified" object with nested objects?

I have created an object s_val of type RTCSessionDescription and added my new field to it:s_val.options = {get_audio: false, get_video: false};Then I have tried to "stringify" the...

View Article


Image may be NSFW.
Clik here to view.

About sprite-flex-js issues [closed]

I'm a beginner of sprite-flex-js (Apache Royale). Right now the issue I meet is: FlashDevelop IDE has recognized a thirdpart class Stats, but when building it, the compiler shows a error: Call to a...

View Article

About spriteflexjs examples issues [closed]

When I try to compile testMouseEvent.as in these examples, I always meet the error: Call to a possibly undefined method Stats.How can I resolve the issue?

View Article

What are npm, bower, gulp, Yeoman, and grunt good for?

I'm a backend developer, and slightly confused by npm, bower, gulp, grunt, and Yeoman. Whenever I ask someone what their purpose is, the answer tends to boil down to dependency manager - for all of...

View Article
Browsing index pages (147290 articles)


Latest Images