Questions tagged as 'javascript'

1
answer

How to convert or create a string to elements in js

I probably did not present the question well I'm a rookie in json code and I need to create a canvas graphic with javascript. The queries in php and mysql are made correctly and I convert the results in an array and this in json code to work...
asked by 19.09.2017 / 04:55
1
answer

Listed in a table from a json

The idea is to press the button to show me the list of countries within a table like this image: As it is the code when pressing the button it shows me everything in a single row but I have not been able to make the result show it to me...
asked by 18.09.2017 / 14:16
1
answer

I reload the paina the stopPropagation ();

Good morning, as I do to make a togo click event change classes or image with arrows below and above. $(document).ready(main); var contador = 1; function main() { $('.children_').click(function() { if (contador == 0)...
asked by 18.09.2017 / 20:39
1
answer

Help with collapse nav bootstrap and js

I have a navbar that has a call element that opens a popup that shows the phone number but when I click on that section the navbar menu does not close and the popup is down and the numbers are not shown how to make close the navbar by clicking o...
asked by 18.09.2017 / 21:51
1
answer

Error adding Item in function PUSH AngularJs

Greetings! I have the following error, I want to add a new object with the function Push() but I do not enter it correctly, I do not know what may be happening, I am new in angularjs var app = angular.module('simpleTimeline',...
asked by 18.09.2017 / 15:25
1
answer

Error using Javascript variable in Chart.js

In Laravel, I have a function defined on the blade to capture the selected text in a drop-down list: <script type="text/javascript"> function sacar_nombre(){ var combo = document.getElementById('titulo'); var titulo = combo.options[c...
asked by 10.09.2017 / 10:09
1
answer

How to validate a field in a form

I have a form, where I have, for example a name field. Then I have a JavaScript with the following: function validarNombre() { valor = document.getElementById("nombre").value; if (valor == null || valor.length == 0 || /^...
asked by 09.09.2017 / 00:23
2
answers

Distance between two JavaScript marker

Good morning. I have this code that receives lat start, long start, lat end, long end and it generates a map with two marker and then shows how to get to that point by DRIVING. <?php $latitudInicio = $_GET['latitudInicio']; $longitudInicio...
asked by 13.09.2017 / 13:42
1
answer

ng-repeat does not show me the list

I'm starting to learn Angular. make a small example and show me the list: HTML and JS: var app = angular.module( 'flapperNews', [] ); app.controller( 'MainCtrl', [ '$scope', function($scope) { $scope.test...
asked by 13.09.2017 / 17:26
1
answer

Problem to show amount in highcharts

an array of numbers in javascript. and this always zero why? Here Code: $(document).ready(function(){ var arrayMonto = []; arrayMonto.push({"name":"200000"},{"name":"35000"}); window.console && c...
asked by 13.09.2017 / 16:16