Questions tagged as 'javascript'

3
answers

How to send AJAX request with headers

I explain my drawback: I am trying to consume a API of a page so I make the following request: <script> var button = document.getElementById("btn_submit"); button.addEventListener("click", e => { e.preventDefault...
asked by 01.10.2018 / 16:38
2
answers

Differences between computed properties and methods in VueJS

Within VueJS we have two options to manipulate the data that are within the reach of our instance of VueJS : Computed properties Methods (functions in the way we already know them) METHODS EXAMPLE let app = new Vue({ el:...
asked by 07.10.2018 / 16:01
1
answer

Difference between ./ and ../ in require Node.js

I have a require ./../app and I do not understand what it means, since from what I understand ./ implies in the current directory and ../ a directory above, with which I do not understand what they mean together. Thanks!     
asked by 03.10.2018 / 22:26
2
answers

Button with jquery does nothing

I'm trying to do something and I've started with the simplest part, to show a message when I click on a button with jquery, I searched the internet and tried it in several ways, but the button simply does not do anything. <!doctype html>...
asked by 03.10.2018 / 21:04
2
answers

Receive value from an input and display it without updating the page

I have a problem, I am receiving a value of an input and I am showing it, the problem is that every time I make the query the page is updated and I do not want the page to be updated every time I make this query, which could do? <form acti...
asked by 21.08.2018 / 03:16
1
answer

Error using d3: "d3 is not defined"

I am starting to do my pininos with d3 in Python (using Jupyter ), with something very simple, but no matter what I do, I have errors. Go the code: from IPython.core.display import HTML, Javascript import json #Llamo a d3...
asked by 04.12.2018 / 01:45
1
answer

The 'onreadystatechange' method of XMLHttpRequest is not executed

I have this code that I simplified to find out why it does not work, but I still can not find the error. I put a alert() after the onreadystatechange method and I checked that it never gets executed. Why can it be? localhost / f...
asked by 04.12.2018 / 05:12
1
answer

divide arrangement into 3 arrangements

I have an arrangement that I want to divide into 3 arrangements, from 4 to 4. for example [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22 ,23,24,25,26,27,28,29,30,31,32,33,34,35,36] the result I want [1,2,3,4,13,14,15,16,...
asked by 23.07.2018 / 06:09
1
answer

perform calculation by pressing TAB

I am selecting 2 inputs to calculate a value between hours using keypress . My query is how I can perform the calculation only by pressing the% key% of% $(document).ready(function() { $('#horaInicio').timepicker({ 'scrollDefa...
asked by 23.07.2018 / 16:56
2
answers

Problem with the Spread operator in Javascript

I'm trying to put together a function that needs to return the absolute minimum of the values within the arrays that it receives per parameter so it put together the function below. var arreglosTest1 = [21,9,34], arreglosTest2 = [9,...
asked by 21.07.2018 / 20:35