Questions tagged as 'javascript'

1
answer

Error loading json

How about! I am using an api called jquery Mapael for the creation of interactive maps in html, I am loading the data from a json to the application, here is the code: $(function () { $(".mapcontainer span").html("Loading JSON data").c...
asked by 23.10.2017 / 23:16
0
answers

Webcam in modal window

I am developing a system in laravel and I am trying to implement a QR code reader in a modal, the problem is that I do not load the webcam in the modal, I am using html5-qrcode.min.js to decode the qr and upload the webcam, I've tried it on a se...
asked by 16.11.2017 / 19:24
0
answers

Loop in EDGE javascript

I have an endless cycle in the edge browser and I really can not find the fault in my code, I would like to know if someone could ask me about it !? This function is triggered in an onBlur and validates that the input is not empty function...
asked by 30.10.2017 / 20:39
0
answers

Download files from the server with Javascript

I am trying to download files from the server, in this case (EXCEL, JSON AND XML) these files are generated on the server side with Visual Basic, and when generating them, on the client side, it receives the url where the file is located. create...
asked by 24.10.2017 / 21:31
2
answers

Use error handler or extend objecto response in express

Good morning, I am doing a REST API project using Express and with the intention of refactoring the code to return the client an error response I do not know which of the following options is more efficient: Use a bug handler as specified i...
asked by 24.10.2017 / 21: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
0
answers

How to convert a php string variable obtained from a Javascript var to int / integer?

I'm trying to change the string value of a javascript string to integer. Let me explain: I have a variable PHP $ length and a variable Javascript var arrayValuesSubcategoria ... <?php $longitud = (int) "<script>document.write(...
asked by 20.10.2017 / 23:42
1
answer

I have problems changing the position of an array element, without repeating any element

var palos = ['P','T','C','D']; var palos2= palos; var almacenInicial1 = palos[elecion]; var almacenInicial2 = palos[elecion2]; for(var i= 0;i<10;i++){ var elecion = Math.floor(Math.random()*palos.length); var elecion2 = Math.floor(Math.rando...
asked by 21.10.2017 / 01:40
0
answers

problem with liquid-slider in IE

Well that, it turns out that I have fallen a web that uses for all your slider the liquid-slider that I do not even know. The issue is that one of the slider is giving me a lot of problems. The link of the slider is this . And the fault appears...
asked by 02.11.2017 / 08:24
1
answer

Problem with JQuery and variables

A few days ago I started working with JS and JQuery but I have a doubt that I do not understand when I try to send some variables by Api Rest. JS $('body').on('click', '#signupButton', function () { $("#signupButton").val("Procesando......
asked by 02.11.2017 / 13:28