Questions tagged as 'javascript'

2
answers

Close a modal when comparing what profile you have

I have a modal form, in which when you press save (submit) the fields are checked, type that you do not have any empty and such and then the values are sent. I would like to make, within my function, that when everything is correct, we look...
asked by 22.03.2018 / 11:15
1
answer

Destroy the previous function by clicking on another button

I have a list of products with a loop, which has a button called see details. When I click on "See details" it opens in toggle mode the div with the details of the product. When I click on the other product, the same thing happens and it is plac...
asked by 12.03.2018 / 21:30
2
answers

How to save a value entered in a prompt in a variable by means of a loop

How would it be to save the value 0 entered in prompt in variable value and so on the others? Thanks let valor, valor1; valor2, valor3; for (var i = 0; i < 3; i++) { let prompt('Introduce un valor para guardarlo en una variab...
asked by 08.03.2018 / 16:07
2
answers

Help with textillate text animation library

Good day programmers, I am trying to implement a known library of text animation called textillate, documentation: link Well, I do not know if the problem is of includes or I'll be having some syntax error but it's not so much science to ma...
asked by 23.03.2018 / 15:03
1
answer

Error in loaders in webpack

I want to set up a project in React from scratch. Launches the following error: ERROR in ./src/js/main.js Module build failed: SyntaxError: Unexpected token (5:4) 3 | 4 | ReactDOM.render( > 5 | <h1>Hello, world!</h1&...
asked by 28.03.2018 / 20:07
1
answer

Receive url cake php [duplicated]

I want to know how to do the following: When the page comes from google, I want to change the page if the page is found from the google search engine, and to show another one if the url is entered manually     
asked by 28.03.2018 / 15:43
1
answer

Swap images in html every so often

to see if you can throw me a cable. I'm doing a web page and I want to make images go by every x time. What I have right now is: JAVASCRIPT: miBanner = document.getElementById("canvas"); ctx = miBanner.getContext("2d"); var i=0; var image...
asked by 23.03.2018 / 19:12
1
answer

Uncaught TypeError: AXES is not a constructor

I have my Ejes.js code: const mesh = require('./mesh') const geometry = require('./geometry') function Ejes (dimension) { this.dimension = dimension this.meshesDeEjes = [] } Ejes.prototype.armarEjes = function () { var verticesx =...
asked by 28.03.2018 / 13:39
1
answer

Javascript button to get a Trello token

I'm trying to get my trek token by using this javascript function that is executed when a button is pressed, picks up a key, calls the treble api to get a token and then sends the apikey and the token. By including Trello's call to the api I sto...
asked by 11.03.2018 / 12:58
2
answers

Put a variable inside a Jquery

I'm doing a product query that pulls the item of a database. At the moment of giving click in a link this shows a content. What happens is that these item are within a bucle While . What I want is to get that by cli...
asked by 09.03.2018 / 16:19