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

Removing specific item from nested array and saving the result, how to make...

I have written this code where i know the the specific item i want to remove (timeslot) and the company to which that specific item belogs to (name)My data looks like this:this.state.data = [ {name:...

View Article


Use Nodestream on Frontend with JSZip

I am trying to use JSZip with Nodestream and react frontend. The goal is to download all the files from the function.Is it possible to zip the files in frontend using nodestream and generate...

View Article


Async Function resolves after return

I'm trying to Integrate MongoDB/Mongoose into https://github.com/cornflourblue/node-jwt-authentication-api. But I have issues with the authenticate function in users/user.service.jsasync function...

View Article

Using local storage to make a login and sign up form

Before anything, yes I'm aware using local storage is not practical however I'm new to this and only just practicing. So I need to connect my sign up.php page to my login page. I used set item for the...

View Article

Image may be NSFW.
Clik here to view.

How to start expressjs on shared A2hosting?

I have search a lot and I can't seem to start express js app. All I'm getting is 404 error.Default app.js file which has http server and it works fine.var http = require('http'); var server =...

View Article


Laravel mix cache busting `mix.version([...])` ignoring extra paths argument

I'm trying to add extra paths for laravel-mix to include in the mix-manifest.json, but they don't get pulled in, as described in the documentation:...

View Article

How to group by id array

Hello guys can you help me reduce arrays please. I have two arrays and I need group one of them by mid. Here you can find exampleI have array of objects const arr = [ { mid: 888, name: test }, { mid:...

View Article

How to use on addEventListener on radio button in Plain Javascript?

How can i attach event listener on a radio button in my html? Considering this form:<label> <input name="contract_duration" type="radio" value="6-Months" {{ $contract &&...

View Article


Sequelize: escape string in a literal string

I can use literal in Sequelize to manually build a SQL query part:sequelize.literal(`"foo".bar ILIKE '%baz%'`) But if I want to add a var in this literal block, I now introduce SQL injection...

View Article


To open popup modal based on the box position

I want the popup modal opening where the box is .For the top 2 boxes placed the modal opens correctly , I was trying for the last 2 boxes placed at bottom as well.{ top: 0 + 'px'+...

View Article

Is there a way to check if an npm package needs a publish and only do a...

I am creating a single code base containing multiple projects and each project can be published.To create a streamlined continuous integration process I want my build agent to run a single command that...

View Article

how to pass the json data inside javascript regex? and also validate password...

I am trying to validate the password using javascript regex. Now I want to validate two lower case letters (2 small letters) which is coming from json.psw.onkeyup = function() { var Lcase =...

View Article

Refactoring a long function in a separate file

I have an angular application with some search functionality and some radio buttons. And I have a function that becomes 'very' large. So I moved that function into a separate file. But now the radio...

View Article


Why an event handler function in consumers.py is called multiple times and...

I have created a real time notifier using web-socket, implemented using Django-Channels. It sends the "Post Author" a real time notification whenever any user likes the author's post.The problem is,...

View Article

How to ask user or force update Android System WebView and Google Play...

I'm having android app built using ionic 4 with angular. On some phones users are facing issues with google maps and css styling I have done. This is making UI to appear weird. When user updates Google...

View Article


Sorting Arrays creating key value pairs from multiple sources

I have a large JSON array that I want to use to create key value pairs, combining 3 integers as one pair item and another integer for the second pair item.I am a begginer in coding so looking for some...

View Article

Webpack, gulp and frontstreet framework in wordpress

I try to add https://github.com/themeblvd/frontstreet frontstreet framework to Wordpress.I have pre-built asset "frontstreet.js" in wp-content/themes/front-theme/js/frontstreet.js In the same...

View Article


How to get the value of attribute instead of an [Object object] ? (JavaScript)

I always get [Object object] or are creating a conflict no matter how hard I try. (I tried a couple of other variants.) ;(var $ = function(selector){ var x; var obj = { myLib(selector){ return x ||...

View Article

Reuse multiple existing IIFEs in react app

I have IIFE functions for some of the library code in an legacy application that needs to work for IE10+ (No ES6 module loading, etc).However, I am starting to develop an React app that will be using...

View Article

Convert base64 string to ArrayBuffer

I need to convert a base64 encode string into an ArrayBuffer. The base64 strings are user input, they will be copy and pasted from an email, so they're not there when the page is loaded. I would like...

View Article
Browsing all 139771 articles
Browse latest View live


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