Questions tagged as 'javascript'

1
answer

Game seven and a half JS

I'm doing the seven-and-a-half game in JS, for the moment I'm trying to show on the screen when I press a button a random card and its punctuation, that is, the number one will be worth 1 point, the number 2 2 points, so succesivamente, I need a...
asked by 10.11.2017 / 18:12
3
answers

How can I use the promises nested in this case? NodeJs

I'm doing a code that makes 3 sequential validations, and I'm using promises, however I understand that there is a structure of promises sequential, but I do not understand how to use it in this case. valida.user(data).then((rows)=>{...
asked by 09.11.2017 / 23:58
1
answer

Error sending file by AJAX

I am trying to save a file in a database of SQL SERVER 2008 and I am not managing to send the data to the server side or I am not receiving it well not what I know. Here is my code: Front-End @model PCotiza_compras.Models...
asked by 10.11.2017 / 17:53
1
answer

how to update only the bookmarks and not the entire map? google maps v3

I just want to automatically update my bookmarks and when it picks up a new location in the database, it is updated only on the map .. but I have no idea how to do it. As I read it can be done with ajax function initMap() { var map = n...
asked by 09.11.2017 / 10:22
2
answers

How do I use an event inside a "class" javascript, from the mouseup of a container?

function MakeDrawable(containerID){ this.container = (document.getElementById(containerID) || document.body); this.onCreateElement = null;//Evento externo this.container.onmouseup = function(e){...
asked by 11.11.2017 / 21:08
2
answers

How to show Time With changing minutes and seconds?

I am assigning the value of the date and time to a text field using javascript, however instead of being a static value in the field, I would like the time to be constantly updated (for a query topic in the database) How could I do that? I am...
asked by 09.11.2017 / 21:24
1
answer

does not work correctly Bootstrap 4

I do not know if it should be like that in the first image and I have to edit it or if it's some code error. I took it from the official website; link , but it does not work as the example says. so it appears to me; The example of the pag...
asked by 12.11.2017 / 02:32
1
answer

How to darken all the elements except an iframe?

Hi, I have a page where clicking on a video title opens a player in the middle of the screen. Attached photo: What I do not know how to do is to select all the elements that are not this player and make them darken. The closest thing I've...
asked by 07.11.2017 / 08:22
2
answers

Store a multidimensional array in a variable without knowing how many rows it will get (Javascript)

reviewing one of the freecodecamp algorithms in which we work with javascript I have the following code: function largestOfFour(arr) { var largestNumber = [0,0,0,0]; for(var arrayIndex = 0; arrayIndex < arr.length; arrayIndex++) { for(va...
asked by 07.11.2017 / 10:47
1
answer

Automatic filling of textbox with data type String with JavaScript and JSP

I have a problem with a filling I do with JavaScript when it comes to the functionality of a form in which I manage the database, it has the buttons to insert, delete, modify and display. When I want to delete or modify I use a function that sel...
asked by 03.11.2017 / 16:34