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

how to add webpack plugin to react-rewired

I use rca with react-rewired wrapper. To add custom configuration to webpack I created config-overrides.js file where I store my config settings. I added an babel-plugin-import and it was pretty easy....

View Article


Axios post request not working with Django Rest Framework

I am trying to use Axios post to create a user in my Django Rest Framework api.Currently getting "Request failed with status code 400" when trying to post.It works perfectly fine in...

View Article


Alternative method to run the code continuously instead of do-while loops?

I am creating a slideshow using a javascript. I have created a loop that is responsible for changing the css of my slideshow. I want this loop to be endless since I want to change the slides after...

View Article

Meteor href in email

I'm trying to send an email with an href in its body.const link= document.createElement("a"); link.href = window.location.href; emailDetails.body = "Here is an href: \r\n" + link;...

View Article

why click actions in 'a' element works on active only in javascript?

'a' element works on active onlyif I code a click function on element in javascript but it works on active state only not permanentlyI tried to search in google but I can't get any description about...

View Article


How test the method property in Jest/Jasmine unit testing

I need to test the property of the method in jest. My test is passing but test coverage is not increasing.How test the property of methods?component.ts onClickExpanding() { this.ownerName =...

View Article

Encrypting hex message using hex key in CryptoJS

Message to encrypt: 6b0005000000cfe000004001Key to encrypt with: 5eae7abca1d17b3c390e6e9b7f2e9f99The specification tells me to use AES/CBC/NoPadding and the IV should be all zeroes.When using...

View Article

Click event affects only the first element jquery

I am writing an application where the user selects by toggling the switch button but the click event affects only the first element.<label class="switch"> <input type="checkbox"...

View Article


jQuery Ajax async function don't fired on success

I have code like this:jQuery("#test_btn").off("click").on("click", function () { jQuery.ajax({ type: "POST", url: "/api/test/", data: { test: "me" }, success: async function (response) { alert("foo");...

View Article


async/await throws error "UnhandledPromiseRejectionWarning: TypeError: Cannot...

I have a simple code that prompts for user input and then does something with the input. In the trial run of the code, I get error:UnhandledPromiseRejectionWarning: TypeError: Cannot read property...

View Article

is there anyone who can link to external url from json data by using vue

I have a big problem to link to external url. This url im taking from json and connecting to HTML tag. However i can not get url data and link to that url when I click images. If anyone know how to, i...

View Article

Extract values from array

Hello my script watches a stream... On a message it will extract some data for me using a variable.Here's the script: var evtSource = new EventSource("http://URL.com/_watch//_index?_=1557958948927");...

View Article

Javascript framework to build Workflow Designer

I would like to build a web-based workflow designer with the below capabilities using open source frameworks/libraries. CanvasDrag and Drop custom palettes/shapesAbility to define custom palettes with...

View Article


Binding a line to the positions of two other SVG objects. Is there a way to...

When using the SVG API, I can create a line going from point (x1,y1) to (x2,y2). I may be doing this because (x1,y1) corresponds to the place where I have an object A and (x2,y2) to a place where...

View Article

Use Babel in Visual Studio? [closed]

How to use Babel (https://babeljs.io/docs/setup/) in ASP.NET development environment?

View Article


Reusable React Pagination Component

I am trying to create dynamic pagination react component with reactstrap as UI library. I am stuck around the problem of completing the same.UsersCard.jsimport React, { Component } from 'react' import...

View Article

How to find the updated state within a redux reducer?

I am trying to set up the ability to cancel notifications for users. When a notification is scheduled I get a notification ID that I store along with data to uniquely identify the object. When I try to...

View Article


get a meaningful stack trace with mocha and selenium-webdriver js

When I can't find an element in a JavaScript selenium test, it doesn't give me an easy way to find out which line failed:Here is an example:// test.js const webdriver = require('selenium-webdriver');...

View Article

Image may be NSFW.
Clik here to view.

How do I check if my event.target is typeof HTML input element in React?

Please see this minimum example https://codepen.io/rockmandash/pen/RzwowdThe code is this:<div class="cool"> <input type="checkbox" value="checkbox1"> <input type="checkbox"...

View Article

openpgp.js: generate public key text string from private key text string

Using Javascript and openpgp.js, how can I read private key from text and produce public key?I'm trying to allow user to input their private PGP key to textbox and using data in that textbox (and...

View Article
Browsing all 138134 articles
Browse latest View live


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