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

How to change variable value using PUT method?

I need to change the value of a variable when a button is clicked. For that I made a function that updates the database using ajax. Here is what I have so far: function atualizaBD(novoEstado) { $.ajax...

View Article


Multiple event listener on the same object not working

Is it possible to have two listener listening to the same event? I have an event listener listening for the oncanplay video event, and in some other class, in this example the test class, I have to...

View Article


Image may be NSFW.
Clik here to view.

Javascript Canvas Image resizing with noise seaparately with height and width...

When i resize the image the image becomes noisy e.g in the example image a demonstration has been shown the above image has become noisy after resizing some assistance is needed.?enter code here...

View Article

Why is immutability so important (or needed) in JavaScript?

I am currently working on React JS and React Native frameworks. On the half way road I came across Immutability or the Immutable-JS library, when I was reading about Facebook's Flux and Redux...

View Article

xml parser problem in alexa using javascript

var xml = require('XML-Parser-master'); const fs = require('fs'); var responseString = 'html string'; var finalString=""; var xmlDoc = new xml.DOM(xml.parse(responseString)); const items...

View Article


Google Script Editing

I'm currently working on a project in google sheets and trying to create a script that will rename the tab of every new sheet based off a cell value inside the main sheet. Say for instance the ticket...

View Article

Vue.js component prop is not defined when using {{interpolation}}

I'm trying to define a basic Vue.js component with pug : script(type="text/x-template" id="my-design") div(:class="{active: active}") input(type="text", name="name", v-model="d.name",...

View Article

Retrieve CVV Code From Apple Pay (security code on the back of card)

Is it possible to retrieve the CVV code (3 or 4 digit code on the back of the card) from a supplied Apple Pay token? After decrypting the token on my server, I'm able to extract the user's...

View Article


How to make my image width stick to my svg actual's width?

Here a demo: https://stackblitz.com/edit/react-2lppanI would my green's background, representing the image width, to stick to the actual's image width. I have search on google but found nothing...

View Article


Adding a video to the animating frame

We can add an image to the frame by Adding the image as the background of the content but I can't find a solution to add a video using the same approach without a hand. (I just want a frame for my...

View Article

How can I make a button trigger a Javascript popup (Divi + ActiveCampaign)

I just got off support with ActiveCampaign and they said they couldn't provide me with code examples on how to add their modal pop-up forms to be triggered by wordpress buttons.I found a few resources...

View Article

Image may be NSFW.
Clik here to view.

Can't add map for jquery geocomplete

I added jquery geocomplete to my app.$("address").geocomplete(); And it works.But I also want to link this with the map that I already have on the page:<div id="map2"></div>...

View Article

Tensor flow cant work out correct inputshape

Below is my code and I cant figure what I need the input shape to be My training data X looks like this: its an array of arrays each single array has 8 numbers between 0 and 1 I create it by creating a...

View Article


Testing javascript that updates DOM

I am new to web testing and would like to know how can I test javascript that reads and updates the DOM.function otherFunction(string) { // do some processing and return processed data } function...

View Article

Javascript Recursive Backtracking Sudoku Solver

I recently wrote this same code in Golang with some help from here.If you are familiar with go you can see the working code here.Go PlaygroundHere is what I am trying to accomplish in python....

View Article


Image may be NSFW.
Clik here to view.

How to use foreign key to add data to my database in React

I'm using React to send data to my PostgreSQL database using NodeJS. I have a foreign key (id) in my songs as well as my image that references to the album id for my title, date, and description. I'm...

View Article

how to fetch ip address when someone open emails in a csv file with email, ip...

We put 1px png image in the body of email, as soon as image load into the browser, it hits to image hosted domain and it fetch ip address along with email id. It stores this data in csv file and...

View Article


how to animate css element only when it appears on a window?

i know that there is parallax but i want something else like in this website joinhandshake.comfor example i have this code html<div class="black-div"></div> <div class="animated-div">...

View Article

How to merge two arrays in JavaScript and remove the duplicate items?

I have two arraysvar array1 = [{firstName:'John', age:32, email:'xyz1@email.com'}, {firstName:'Jack', age:40, email:'xyz2@email.com'}]; var array2 = [{firstName:'Jen', age:29, email:'abc1@email.com'},...

View Article

gulp-notify: [sass error!] Помогите решить проблему плиз

Проблема собственно вот в чем ошибкаДали сборку другого разработчика. Не могу запустить чтоб всё было в норме. У другого разраба всё работало.я вообще не вижу файл который импортируется. Почему тогда у...

View Article
Browsing all 138249 articles
Browse latest View live


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