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

Comparing different date formats [duplicate]

This question already has an answer here:Compare two dates with JavaScript 36 answersI have the following:DATE_FORMAT=YYYY-MM-DD HH:mm:ss const differenceInDays =...

View Article


Google Chrome Extension getting sub attribute title from LINK

I've developed an extension based on the downloader which basically downloads multiple links from a web page.I have a popup (popup.html and popup.js) which shows all the full links in the page which I...

View Article


Image may be NSFW.
Clik here to view.

firebase Starting point was already set

I use firebase admin and realtime database on node.js Data look likeWhen I want to get data where batch = batch-7, I was doinglet batch = "batch-7"; let ref = admin.database().ref('qr/');...

View Article

Reverse a CSS Animation with a Click Event

I have just created a menu that has CSS animations which slides in from the right. I can close it, but the menu just disappears instead of flowing out nicely.I had also tried a few things, like...

View Article

Change property of class in wkwebview

I'm using WKWebview in my IOS Application.I'm using:bookingView.evaluateJavaScript("document.getElementById('nearbyLink').style = 'display:none';") { (response, err) in if let err = err{...

View Article


Global flag in javascript

function countSmileys(arr) { let regex = /^([:;])([-~])*([)D])$/ if(arr.length === 0) { return 0; } return arr.filter(el => { return regex.test(el); }) } console.log(countSmileys([':(', ';)', ':)',...

View Article

Square Up payment gateway form with ajax

I am creating a new payment option in website. I implemented the square space successfully. But it creates issue when some one removes any item from the cart.When ajax is called, it loads the whole...

View Article

How to prevent function from running if data error is returned

I have an AJAX request which shows a modal window with a progress bar when the data is computable but if there is an error I would like the error to be returned and the modal window to stay hidden....

View Article


rxjs - buffer stream until function returns true

I have a stream of numbers which increase by a constant amount which I want to sub-sample. Given a constant sample interval, I want to buffer the stream until the difference between the first and last...

View Article


data not showing in datatable

I'm trying to insert data into a datatable from a url that gives me data as json. I have 2 users inside and the table doesn't show anything. It says "Sorry, no matching records found." Here is the JSON...

View Article

How to wait for Recaptcha to load in Puppeteer/Pyppeteer?

I want to scrape a website and I'm having difficulties with the Recaptcha. I've already figured out a way to solve it but before that method starts I have to make sure Recaptcha is fully loaded, which...

View Article

How to verify a Bearer token with .pfx certificate and password in NodeJs?

The below code works if I try to verify a token with a secret but now I want to verify the token with .pfx certificate and the password. How can this be achieved?jwt.verify(token, secret, options,...

View Article

Update label value on live is not working

I`m working on a web application for Blockchain wallet, there I have a method that reads the live current balance of the wallet (from the blockchain). After the reading, I update some labeles that...

View Article


How to replace all occurrences of a string?

I have this string:"Test abc test test abc test test test abc test test abc"Doing:str = str.replace('abc', ''); seems to only remove the first occurrence of abc in the string above.How can I replace...

View Article

Image may be NSFW.
Clik here to view.

Chrome Debugger hovering over variable doesn't pop up variable details

I have the latest chrome version (Version 79.0.3945.79 (Official Build) (64-bit)). However, I am unable to view variable details when hovering over the variable in debugger mode. How can I fix this?

View Article


How to deep merge all objects in array of objects using javascript

I have an array of objects in which I would like to merge all objects into a single object.For example:arrObj = [{ "id1": { "subId1": { "data1": 10 } }, "id2": { "subId1": { "data1": 20 } } }, { "id1":...

View Article

AngularJS multiple number counter end all at the same time

I am trying to have 4 number counters that start at 0 and go to an undetermined amount, in my demo I have chosen 4 numbers: 708687, 784, 19.9, 567856. These 4 numbers are passed into the directive and...

View Article


how to go through data table rows using next and previous

There are meant to be 10 rows on the page, I want to skip to the next 20 on the click of the next button.<body> <div class="navigation"> <span class="previous"...

View Article

React-redux Getting error while rendering post in TypeError: post1.map is not...

As I am new to react ,I am trying to make a simple blog app using redux with react but I am facing issue while fetching the blogs.It is giving error TypeError: post1.map is not a function .Here is my...

View Article

Resize text area automatically to show all text on load without scrolling in...

I am trying to resize text area automatically to show all text on load without scrolling in Blazor.<textarea class="form-control" maxlength="255" style="width:250px;" @bind="Comment" id="Comments"...

View Article
Browsing all 138192 articles
Browse latest View live


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