Questions tagged as 'javascript'

2
answers

Show modal of Bootstrap with JS

The problem I really do not know where it comes from, and it's quite simple, but I do not know how to solve it, the issue is that I have a form that is to be able to enter X site as a user, then it has its respective field of user and password...
asked by 10.10.2018 / 12:18
1
answer

Validate form with JS [closed]

I want to validate a form with js through an alert My code is the following but it is not working for me I have removed the type="submit" from the button, otherwise, it always confirms the form function security(){ var mensaje =...
asked by 11.10.2018 / 08:01
1
answer

Doubt with load (1) [closed]

I have the doubt that this "load (1)" meant in this input <input type="text" class="form-control" id="q" placeholder="Código o nombre del producto" onkeyup='load(1);'> As I see in the file there are other load (1) like here but in no...
asked by 31.10.2018 / 17:22
0
answers

How to refresh component in Angular [in standby]

I have a website where I show different sections in the menu according to the type of user that accesses. All of them are loaded with different calls through API. The problem comes when the user refreshes the screen, when reloading the dat...
asked by 31.10.2018 / 07:59
1
answer

Execute expression when you finish fetching data using Http AngularJs

I am trying to make that when I give click to checkbox an expression is executed when it has finished bringing the datos of the function getUsers() , apparently it works fine. But then what I want to do is to deact...
asked by 31.10.2018 / 13:26
3
answers

make a conditional only affect a certain number of elements with the same attribute

class Edificio { constructor(celda_id, nombre){ this._celda = celda_id; this._nombre = nombre; } get tipo(){ return this._tipo; } trazar(){ const celdas = opener.document.getElementsByClassName('celda');...
asked by 31.10.2018 / 18:46
1
answer

Images broken when showing

Hello good afternoon someone could tell me because some images are broken but others are not this is my ajax $('#cargueArchivo').click(function(){ if($('#imagen').val() != "") { var archivo = $('#imagen')[0].files[0]; var nom...
asked by 02.10.2018 / 16:50
1
answer

Link from a list-group within a tab to the next tab

I have a bootstrap wizard with progress bar, the original example is that every time you click on a tab advance the progress bar, my intention is to take advantage of this code to insert a list-group in each tab and that when doing click on any...
asked by 31.10.2018 / 01:25
1
answer

Repeat random number

How could you make a condition that shows you a certain message after a certain random number is repeated 7 times? For example: var gana = localStorage.getItem('j1'); if (gana == c) { alert("Gana jug1"); } I have that code that...
asked by 31.10.2018 / 19:38
1
answer

Filter by content Multidimensional array, Functional Programming. JavaScript

This time I need to obtain the following purpose, in principle I get an object, which led to a multidimensional array , which I need to take only some depending on its content, the text strings are dates with their value next, I would need...
asked by 02.10.2018 / 21:08