Questions tagged as 'javascript'

1
answer

Pass date from one input to another in AngularJS

Hi guys what I want to do is pick up the date that I put in one of the inputs see: create.html <div class="form-group"> <label for="fechaInicio">Fecha de la cita:</label> <div class="input-group date fecha">...
asked by 08.12.2017 / 22:16
1
answer

Reading of html table with js

I have a table that is filled with an information textbox that has the excel format (the line breaks with the charcode 10 and the tab with the charcode 9), this information is transformed into a table so that later it registers in a database wit...
asked by 08.12.2017 / 17:53
1
answer

window.location.replace (); it does not work

I'm doing a web page with different html documents. Since windows works for me, but with OS X no. This is the method in which I have it written: function guardarCookies() { if ($("#Conditions").prop("checked") == false) { aler...
asked by 08.12.2017 / 18:07
3
answers

How does recursion work?

Can someone tell me how the recursion works? Step by step if it is possible, I do not get to understand it, how the function can not be executed, as it takes new values until it reaches zero, there it will return 1 and again to the other functio...
asked by 09.12.2017 / 15:06
1
answer

Two word prayer stored in var Javascript

If I keep a sentence that will always consist of one or two words in a variable var , how do I save the first word in one variable and the second in another, in the event that the sentence be of two words, and to know that (if the sentence in...
asked by 11.12.2017 / 03:05
1
answer

Is there any way to know if an object hits (collides) with another in javascript?

I have an idea to make an animation when an object of the DOM impacts with another but I do not know when they impact there is a way to know it? I'll give you an example of what I take when I give the arrows box 1 moves my idea is that when I...
asked by 09.12.2017 / 07:12
1
answer

I'm getting: Data column (s) for axis # 0 can not be of type string

I have a small function that is responsible for obtaining a series of data: AngularJS $scope.importarEstadisticas = function() { $http({ method: 'GET', url: 'mainApp/Estadisticas/estadisticaMeses.php' }) .then(functi...
asked by 27.01.2018 / 16:53
3
answers

To know the last day of the month between 2 AngularJS dates

Greetings, I have a problem in my controller with AngularJS , I have an object that brings me the following Objeto{ FechaInicio: "2017-11-04" FechaTermino: "2017-03-04" } I need the way you tell me the last dates of the month that exist in...
asked by 06.12.2017 / 14:04
1
answer

How to flip the cards in this game if there is no match? It tells me, random is not a function

I would like to know how to do so that the cards are returned IF THERE IS NO MATCH, the game draws cards random once it is clicked. But I do not know why he tells me that mistake. The same if I do cardsInPlay[0].setAttribute('src', 'ima...
asked by 06.12.2017 / 18:51
1
answer

Get the time to open based on the day

I have the following HTML code Sunday 18:00 - 23:30 Monday 18:00 - 23:30 Tuesday 18:00 - 23:30 Wednesday 18:00 - 23:30 Thursday 18:00 - 23:30 Friday 18:00 - 23:30 Saturday 18:00 - 23:30 In The Javascript I have: var hour_start = 14; var h...
asked by 06.12.2017 / 12:23