Questions tagged as 'javascript'

2
answers

Link javascript in two html files

I'm starting to see javascript and I have two html pages with javascript content. In one I have a method and in another I have to show the result of that function. I tried calling it in the header and just before calling the method, but it does...
asked by 16.02.2018 / 15:58
2
answers

Validate form so that it does not take blank spaces

I would like to be able to validate an input so that by pressing the "space" key there is no effect on the input. This is what I have if ($('#correo').val().trim() == "") { mensajeAlert("El campo correo es obligatorio");...
asked by 15.02.2018 / 16:27
1
answer

Time bar Video html5

hi what happens is that in the progress bar of the time of the video I'm trying to make that when I press it somewhere on the bar I'm going to that moment of the video, but I've been doing this for 2 days and it does not fit me I have tried seve...
asked by 20.03.2018 / 18:39
1
answer

Javascript code does not make CSS transitions

Hello, I have a javascript code that opens a window, and I have its css with the background transitions and everything but I do not realize them .. Could someone tell me why? Thanks function jmgModal(id1, data, ok, input) { data=dat...
asked by 21.03.2018 / 09:47
1
answer

Problems with id in script

I have this input @foreach (var j in jornada){ <input id="jor" name="NombrJornada" type="radio" value="@j.IdJornada" onclick="Filtro"/> } and my script I have this $(function() { $("#jor").click(function () { con...
asked by 09.02.2018 / 17:28
1
answer

Change for each by a normal for

I have an Object that is films and with this I am going to call an ajax function so that it shows me a title of a movie (In the api they send me 4 or more) to go through each movie I made a FOREACH but I want it to show me only one so I try with...
asked by 08.02.2018 / 10:03
2
answers

Wait for an append within a cycle

I have the following code, what I want is that I go through each one of the registers inside the array data and show it, put the state READ , then PROCESSED , finally DELETED and continue with the other until the end of the cycle, t...
asked by 10.03.2017 / 18:53
1
answer

Get data from an array of json objects

Hi, I'm trying to get the data from an array of json objects and save them in a different javascript array For examples I get this JSON through an api rest [ { "temperatura": 2.3, "fecha": "2018-02-05T06:13:01.000Z"...
asked by 07.02.2018 / 01:09
2
answers

Separate an amount in thousands, hundreds, tens and units

I have the following code that should be put in control of the image interface but it does not work. Please some advice so that the amount that I send to a text box and show me how many thousands, hundreds, tens and units has. How can I separ...
asked by 05.02.2018 / 03:56
1
answer

Append from ajax

I have this AJAX $.ajax({ type: 'POST', url: "libreria.php?cmd=" + comando, dataType: 'json', async: false, data: params,...
asked by 07.02.2018 / 13:29