Questions tagged as 'javascript'

1
answer

How to stop waiting for an element when finding it (Javascript)

I have a question. I have the following code to wait for these elements and assign them those values. The problem is that the page is in loop thanks to the change event. I would like to know how to stop the timeout after having found those eleme...
asked by 10.07.2018 / 02:39
1
answer

change library time obtained by javascript moment per server hour in fullcalendar library

What I have problems with is changing this line of code that brings me the current time of the pc, I need to change it for the server time so that the last day can not be changed by the user, only by me. this is the one that uses javascript...
asked by 10.07.2018 / 21:46
4
answers

How to detect parity of a number without operator%?

I have a variable that the server gives me with a value, I need to know if the number is par or odd , but without using %2 : $.ajax({ url:'/numero', type:'POST', success:function(num){ // ¿Qué hago con num para sab...
asked by 14.12.2017 / 13:24
1
answer

I get the following error 'directives' does not exist

cronometro.html <div> <button (click)="start()" >Empezar</button> <button (click)="lapso()">Lapso</button> <button (click)="stop()">Parar</button> </div> <div> <p>{{hora}...
asked by 14.07.2018 / 18:15
1
answer

How to avoid looping when trying to autocomplete input of type select using setInterval

I have the following code, the idea is that using interval select a value in a select and then assign a value to another select. But the change event that I should use is causing the page to refresh and loop. Any suggestions? var interva...
asked by 10.07.2018 / 23:06
2
answers

Use of props in reactJs

I am learning react with official documentation, there in the tutorial of the official page develop a small example of the game tic tac toe and I understand it but there is a line that causes me a lot of confusion. In the square component (w...
asked by 19.07.2018 / 11:39
0
answers

Why does document.body.offsetHeight not equal window.pageYOffset when I scroll to the end of the page?

Assuming that pageYOffset is the current scroll and then when you scroll to the bottom of the page should be equal to offsetHeight which is available for an item or so to say the total size in and of a page or item scroleable area, but n...
asked by 16.07.2018 / 02:27
0
answers

How to load datatable with ajax url mvc method

I am developing a project in Visual Basic following the MVC pattern. I have a method called ObtenerDirecciones that will return a json . What I want to do is load a dataTable with that data. This is my javascript code....
asked by 16.07.2018 / 01:40
0
answers

Error sending form with JavaScript

I am trying to send a form and receive the data that comes from the database through JavaScript but it only sends me a message when I want to send the form and it does not bring anything from the database, and the connection does not it throws m...
asked by 16.07.2018 / 02:53
0
answers

Problems navigating a PHP multiForm

I have a problem with a form (divided into three forms) that I have done with a php session to get the data later. (I'm using Semantic UI (that's why I have it in 3 separate forms instead of one)). I put a small example of what the code is wi...
asked by 09.07.2018 / 13:11