Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Browsing all 138134 articles
Browse latest View live
↧

Graphql returns repeated results

I had a small problem, and it turned out that I am doing a Query with @apollo/react-hooks, the double information returns to me, the first undefined returns and the second returns me with the...

View Article


how to access elements from this object in javascript?

i was trying to get number of hashtags used at specific time using twitter api and an npm module hashtag-count.this is the program and the results is generating the object below.var HashtagCount =...

View Article


How to access one component's state from another component

How do I access one component's state in another component? Below is my code and I'm trying to access the state of component a in component b.var a = React.createClass({ getInitialState: function () {...

View Article

how to properly bind function in js [duplicate]

This question already has an answer here:What's the difference between event.stopPropagation and event.preventDefault? 7 answersThe jquery version works but the js version doesn't. What's...

View Article

"_ is not defined" Underscore error in HTML file

this html file from a node.js project which was originally a jade signup file from the Drywall.js project by jedireza. Its location on GitHub is:...

View Article


Disable only certain js files in a browser

I'm trying to diagnose an issue with a web app that uses multiple Javascript files. One of the scripts modifies DOM by injecting a new element into it. My idea is that I would disable js files one by...

View Article

Chrome Extension: Scraping websites that the user is not currently viewing

I am writing a chrome extension that needs to scrape the web given user input. Since JavaScript's same-origin prevents me from doing this through the content/background script, how else could it be...

View Article

How do you use CSS to format an image in parallel to multiple divisions in HTML?

So i working on my integration of JS into my HTML and i want my web page to look some what presentable for a low level programmer. I have tried putting different divisions around and image (so two on...

View Article


javascript on hover scroll page ( No jQuery )

I am trying to hover over a button and trigger a page scroll slowly. Not scroll to ID but slowly scroll the page on hover and to stop scrolling when Not hovered.

View Article


Inherit padding width without position absolute? Is it possible?

Not sure, but I am currently not able to figure out. I'm trying to center the inner div (blue transparent one) from the parent (with the red background) inside the background. As an example, they're...

View Article

Google Sheets row automatically moving

I have a google sheet in which each row is labeled with a date (all dates, in order). I have an undated row that I want to appear immediately under today's date, so I want it to move down one row every...

View Article

Function returning not defined when called from script file

After learning how to put all javascript code into a single page by declaring and calling functions like so:function script() { const foo=document.querySelector('.foo'); if(!foo) { return } code...

View Article

How to implement long pool in my chat application?

I feel terribly stupid but I don't have the strength to do it anymore. Whatever I do, it doesn't work, so I'd like someone to do it for me,I need to implement the Long pool into this chat. I read many...

View Article


Bootstrap dropdown problem in Laravel 5.7

I started a new laravel project yesterday. Followed the guide from a guy in YouTube. Everything works until I installed laravel auth and realised none of the bootstrap dropdown works, even when i...

View Article

Draw multiple series in Highchart from single JSON data container

I an trying to draw 2 lines in Highchart from JSON file I have been reading threads with similar problems but to no avail so now i posting my problem. My JSON file looks like this[[ 1578258092000, 109,...

View Article


Image may be NSFW.
Clik here to view.

Code note recognizing ColumnDataSource for what it is

I want to change the data source of a simple line plot depending on what the user picks from a dropdown menu.I have 2 dataframes, the weight and age of myself and my boyfriend.my_weight = [60,65,70]...

View Article

How is this fetch optimised on react gatsby website

On the front page of a website served with a Gatsby React setup I have a NavbarExtra component that shows some data via an api. The data coming from that endpoint changes several times a day.The idea...

View Article


Executing a file too many times?

EDIT:I still have a bug where if I use the command watchit by itself without filtering in an argument I get an endless loop of processes opening without being killed. I think this could be because of...

View Article

How do I call clearInterval from multiple places in my application?

I have a countdown timer that I need to reset from more than one place in my React Native application. I have a service function that returns my updated time string and a variable that the setInterval...

View Article

How to process large files efficiently in react.js

I am trying to render the hex values in a file uploaded using react. When I upload big files, say 10MB, the page crashes, but sites like http://mikach.github.io/hex-editor/ works like a charm. I don't...

View Article
Browsing all 138134 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>