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

Waiting on Lazy Loaded objects without lockup?

I already have code which lazy loads scripts on request. My issue now is waiting to execute certain code until the object becomes available. I can't use a setTimeout() because it does not block...

View Article


group similar values in array of objects [duplicate]

This question already has an answer here:Group array items using object 13 answersI have an array: [{id:1,val:2},{id:1,val:2},{id:2,val:2},{id:2,val:2}] Desired output:...

View Article


because when I execute a request to firestore with the snapshotChanges or...

I am making a request to the "firestore" database through the snapshotChanges () method, but this one does not seem to be executed, I realized that this if it is executed when I print the observable...

View Article

Http-post mehod is not working in Javascript

When i do a http-post request from a html form it was working. But when i do this using javascript it throw a error like thisAccess to XMLHttpRequest at 'https://www.something.php' from origin 'null'...

View Article

Netflix video player in Chrome - how to seek?

I have been unable to figure out how to do a video seek (automatically advance to a certain point in the video) in the Netflix video player running in Chrome. The currentTime property can be read but...

View Article


react native call setState within componentDidUpdate error

I've a multiscreen app using react-navigation and passing a prop from CameraScreen to HomeScreen called 'barcode' like so: takePicture() { //Redirect this.props.navigation.navigate('Home', {barcode:...

View Article

How to remove these D3.js console log error

I have the error below, after trying out some other work arounds (like trying out the suggested solutions to similar problem)- no success took place.Error: <rect> attribute height: Expected...

View Article

how to get the time of the video player which is equivalent the input type range

I am creating a video player and I want to create a function which will show the video time which is equivalent input range when i hover on input range.I created a function, but it gives me not...

View Article


From json to image using fabricjs

I am saving a fabricjs canvas on my database as a json. I've got no intention of modifying it, I just want to recover it, resize it and finally create a PNG or JPG image, which I will add in my web...

View Article


(Webpack) Using the url-loader or file-loader, do I really have to include a...

I'm still learning webpack, and I was having trouble getting images to show up in my production build until I stumbled upon some code which had a require('path/to/image.png') at the top of a .js file....

View Article

Avoiding state in simple incrementer

I'm trying to wrap my head around avoiding state using JavaScript functional programming techniques. I have a solid grasp of many basic fp techniques such as closures, currying, and so on. But I can't...

View Article

How can I overwrite the Mongoose findOne() function on a schema for testing?

I am trying to test some business logic and need to overwrite the findOne() function that is placed on a Mongoose schema.A small workable example of what I am trying to do is:function myFunc() { const...

View Article

Aggregation query for most recent message from all users and one singular...

This question already has an answer here:Mongoose aggregate returning empty result [duplicate] 1 answerI'm trying to get all of the messages between User A and any other user.My schema is:const...

View Article


click event is not working in innerhtml string angular 6

I am working on an generate dynamic template using angular 6. I have an API that return strings like below:<button type="button" (click)="openAlert()">click me</button> and html<div...

View Article

How can I fix WebStorm warning "Unresolved function or method" for "require"...

I'm using WebStorm 7 for Firefox Add-on SDK development.WebStorm shows a warning: "Unresolved function or method" for require().I want to get rid of the warning.var pageMod = require("sdk/page-mod");...

View Article


How to sort table data by asc and dsc?

I am trying to sort data from data in table and i wrote somecode by still i can't sort table its just showing icon not working sorting , Here is my code that i wrote so please look and guide me what...

View Article

Image may be NSFW.
Clik here to view.

How to load JSON file with date to Google Charts

I can't plot data with google charts because of json format data is not properly fitted. I can't figure out how manipulate the data for get the expected format. The data come from a csv file.I applied...

View Article


Check all/sum values - how to put span inside input

I wrote some code which sums up all the values of checkboxes with a "toggle all" option. At the beginning I needed to only have information about the value, but now I need to have sum inside an input...

View Article

How to add the Sticky class in Nav

How to add the Sticky class in Nav and how to use the sticky class in css in smoothness for Navigation

View Article

Passing data to a view loaded with res.redirect in express

Good morning all. I am trying to pass data to a view which is loaded in express via a redirect: res.redirect('/manage-account/2-0/returns/answers')The above is an html view which loads fine with just...

View Article
Browsing all 139771 articles
Browse latest View live


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