Questions tagged as 'javascript'

2
answers

Is it necessary to use two types of validations in laravel?

I will present a topic that you may know, but for me it is not entirely clear ( for the amount of time I've been using the Laravel framework ), I hope this topic can be explained here: It turns out that I am developing a sitio web (admi...
asked by 11.04.2018 / 16:48
2
answers

replace values in symbols in a string

I have the following string: Var text='¡Hola $var1$! Gracias $var2$' How can I replace what is between $ by the value of the variable. Example: var1="Juan", var2="Pedro" Resultado='¡Hola Juan! Gracias Pedro' The text can have more var...
asked by 11.07.2017 / 16:47
2
answers

Differences between nested AJAX and promises

In another question of StackOverflow in Spanish is done reference to nested AJAX calls and the response suggests using promises instead of nesting AJAX calls. And from there I have some doubts. Note: I'm going to use jQuery notatio...
asked by 02.02.2016 / 23:53
2
answers

var, let, const ... or nothing in Javascript

The following question: When it is convenient to use var, let and const in ECMA Script 6? responds in part to my question, but not entirely. Reading the accepted answer, I understood that: let declares a local scope variable...
asked by 29.09.2017 / 16:56
3
answers

For each in javascript?

In java you can: for (elemento e : array) Jquery $.each(arr, function() { in javascript I know what I can do for (var i = 0; i > 10; i ++) But is there any way to do a for-each in pure javascript?     
asked by 25.07.2016 / 09:58
2
answers

Carousel Boopstrap with different intervals for each slide

Hello, I am doing a banner with the carousel that comes in boopstrap, the requirements indicate that each slide should last a certain time and that when I put the mouse on one of the slides it should pause. HTML: <div id="carousel-pu...
asked by 07.02.2016 / 23:38
2
answers

remove row from html table with Jquery or JS

How to delete the row of an html table with js or jquery or css ?, I have a table that shows product records of a Query SQL to my BD, I add a button where it opens a modal to register some data belonging to that record , when I have finished fil...
asked by 05.05.2016 / 01:16
3
answers

Synchronize audios with HTML5 and Javascript

I want to merge two audios into one to synchronize them with HTML5 on the client side. I've seen that with Web Audio Api you can do many things, but I have not been able to find how to do it. I have the link to two audio files (.mp3, .wav ......
asked by 22.07.2016 / 11:39
1
answer

extended classes in javascript with ecmascript6

I have a base class ( Persona , which implements some methods and in its constructor accepts parameters. is the following class Persona { constructor (nombre, apellido) { this.nombre = nombre; this.apellido = apel...
asked by 05.03.2017 / 16:28
4
answers

Capitalize keys that are being pressed from any input

I would like to write the keys to be capitalized, taking into account that it can be done with any input of the form, that is, that the formula is general. I have the following: function mayus(e) { var tecla=e.value; var t...
asked by 03.04.2017 / 15:07