Questions tagged as 'javascript'

2
answers

addEventListener fails to click the first time

I'm trying to make a system that enlarges / reduces the width of two div with JavaScript. For some reason, the first time I press the button does not work. The following times it works perfectly. Why does not the first time it is pressed work...
asked by 06.03.2018 / 13:50
1
answer

Show array list in Vuejs

I want to show my list of ingredients in Vuejs of a juice, this list has inside an array that is to say this is my json object category 0 _id "5aa875ab69355c25d0132a41" title "Refresh" ingredient 0 category 0 "5aa875ab69...
asked by 16.03.2018 / 22:04
1
answer

Infinite Loop with promise

I have serious doubts about this that came to me recently. I want to make an infinite loop of a request to an API every 15 seconds, but I want the loop to wait for the answer of the promise and then go again 15 seconds. So, the behavior I...
asked by 09.04.2018 / 17:21
1
answer

Parsear date with bookshop momentjs

I want to pause the date like this (day: month: year "spaced" hour: minute: second) I did the test with 2018-12-10T10:33:57-04:00 and it returns me 12/10/2018 10:12:00 that result is wrong, I need 10/12/2018 10:33:57...
asked by 12.12.2018 / 22:55
2
answers

Show Node.js buffer in real time in a browser

I'm trying to make a program in Node.js that, after receiving a Unix-like command via POST , it executes it and displays in real time the output in the browser. This is the code I'm using to execute the commands: exec(myCommand, fu...
asked by 23.12.2015 / 20:05
1
answer

Obtain value of a JSON object according to the value of another JSON object

Transfondo: I have an application in VB.NET where I consume some web services "API's". One of these APIs (for the purposes of the question will be called EnviarArchivo ) returns an object with this structure: API response Envi...
asked by 02.01.2019 / 19:25
2
answers

Get the coordinates (X, Y) of the last letter of a textarea

I have a dropdown that I want to position in the last character of textarea , but I do not know how to achieve it, I researched how to capture the cursor position of textarea but I have not found anything useful and I have no...
asked by 16.11.2016 / 20:19
1
answer

Change position to the div when I click AngularJS

I am trying to position the box azul depending on the box to which I give click , that is, if I give click to the green box, the blue box should go down to where the green box is, not it can be at the top, it should be as if...
asked by 24.01.2018 / 22:13
1
answer

this.state.users.map is not a function

Trying to show data in a view in React Js , I have found an error that following the steps of the tutorial still persists:    this.state.users.map is not a function The code is as follows import React, {Component} from 'react'; im...
asked by 23.02.2018 / 19:11
1
answer

Irrigation Percentage in Map, Google Maps API Js

Good morning, I am trying to show on a map a percentage of Irrigation. I have tried it in several ways, for example: -Show a 50% polygon on an original polygon of 100% It did not work because when sending only 50% of the coordinates of the ar...
asked by 30.11.2017 / 16:25