Questions tagged as 'javascript'

1
answer

Mark several points in Google Maps?

I have a problem with the markers in the map of google maps, I have been trying to implement a google map with javascript api, I work with ionic 1 and angularjs and this is the code I have so far. The problem is that it only marks me where I am...
asked by 15.06.2017 / 17:35
1
answer

How to make the label of the X axis in ChartJs look complete and also horizontal

I have a problem showing the horizontal labels in the chartjs, try changing the size of the letter and obviously reducing it, but what I really want is that apart from the size being reduced, the label also fits in two rows of be necessary. And...
asked by 16.06.2017 / 14:09
1
answer

Calculate months in Javascript

Any way to calculate 4 exact months after a date obtained from a string, for example "17/12/2017"? Thanks in advance!     
asked by 15.06.2017 / 16:25
1
answer

Problem loading URL

I tried to place an image on canvas and here everything is fine: var hats = { santa: new Image() } hats.santa.src = "https://1.bp.blogspot.com/-TLqidoaU-g4/V1UwLG1dWvI/AAAAAAAAC34/4RpuUek_09UwHRsb7HEnaFs8j8OiEhZAwCLcB/s320/pvPM...
asked by 17.04.2017 / 20:37
1
answer

The 'addEventListener' property of null can not be read

When I execute my code, in the console it returns me:    "Uncaught TypeError: Can not read property 'addEventListener' of null" function calcularPromedio(json) { var out = "-----------Calcultar Nota Promedio----------<br>";...
asked by 04.05.2017 / 13:52
1
answer

How to get the id of the created elements?

In a previous question I have been given this code and I have a problem that is like being able to show the id of each element created or how to get the id (what happens is that I need to do an if). Canvases are created in the per. b = [1,2,3,...
asked by 04.05.2017 / 15:15
1
answer

The if only recognizes me the last element of the array, what do I do?

function comenzar(){ var caja=document.getElementById("caja"); var numero=document.getElementById("numero"); numero.addEventListener("change",background,false); setInterval(background(),50); } function background(){ valores...
asked by 10.04.2017 / 15:49
1
answer

Get value in POST variable of a Modal window

How about, asking for your help one more time. I'm making a table where I show clients and each client has a button where they show their personal data, I'm doing it when I click on the button to open a modal window and show that information I d...
asked by 11.04.2017 / 17:17
1
answer

Modify variable value in script when clicking on a label

Good morning, I'm working with a small script that runs when you click on label . By doing so, it activates or deactivates a checkbox type input, and based on this I want it to show one thing or another on the screen (if it has been sub...
asked by 15.04.2017 / 22:42
1
answer

How can I make multiple divs work in roll-out status with Jquery?

Good, I need to know how to make this Java Script code more optimized, it works for me so far. I have Divs with class "item" and images inside. The only thing I do is change the attribute when they are in mouse over and out, but I need help to k...
asked by 30.03.2017 / 15:31