Questions tagged as 'javascript'

1
answer

Problem when deploying in Microsoft Azure

I made a web application, I use NPM and several packages there, after doing build of my application and uploading my final files (only the html , css and js ) to Azure , I get the following error when loadi...
asked by 24.08.2018 / 19:50
1
answer

refactoring and best practices for promises js

How can I refactor and apply best practices to the following code? function sumar(num1,num2) { return new Promise((resuelta, rechazada) => { if (!num1 || !num2) { rechazada('falta un numero') } else {...
asked by 24.08.2018 / 20:37
1
answer

I need to validate in a script that I do not select the same option more than once

So I have my script: var imagenes = { "leon": 'imagenes/leon.gif', "burro": 'imagenes/burro.gif', "ballena": 'imagenes/ballena.gif', "gato": 'imagenes/gato.gif', "elefante":'imagenes/elefante.gif', "pato": 'imagenes/pato.gif', "h...
asked by 24.08.2018 / 21:29
2
answers

Friends a query, I'm working with bootstrap and I call a modal, send a comment a strange character appears

So I send and call my modal from jquery .... $('#modalcontenidodos').text("Este DNI ya tiene un usuario y contraseña."); $('#mymodaldos').modal('show'); but I get a strange character in the modal as well ........
asked by 30.08.2018 / 22:13
2
answers

Why are "anchors" added to the end of the URL?

I have a web page that works with tabs and sub-tabs. When in a sun screen I add information when refreshing I do a .click() on the same tab (JavaScript) and a # is added to the end of the URL. The problem is that sometimes names of the ta...
asked by 29.08.2018 / 22:31
1
answer

AJAX sends me empty data to PHP

It happens that I am creating a temporary table, the data that I am registering in the same I will pass them to an array (miArray) in js to be able to send them through AJAX to a PHP and then save them to a database. Function of Javascript...
asked by 30.08.2018 / 00:05
1
answer

Server does not receive full JS fix

I'm developing an application in Laravel, at a certain point I had to use an array of objects to store the information that is going to be sent to the server, the problem I'm having is that I build my array but at a certain point that the array...
asked by 31.08.2018 / 07:07
1
answer

delete alert not configured

I have a problem that I do not know how to solve, to see if you can help me. In a window I have a window which has the personal data and other data of a person in which you have a "Modify" link that takes me to the form to modify the data, bu...
asked by 22.08.2018 / 09:14
1
answer

How to redirect to a jsp from another controller in java?

I have the following method in my controller, which sends me to the login page @RequestMapping(value= "/login", method= RequestMethod.GET) public String irPaginaLogin(){ return "/login"; } and it contains the following field...
asked by 22.08.2018 / 04:24
1
answer

console.log with values and return undefined

var got = require('got') exports.coger = function (id){ let i; if (!id){ i = "Introduzca una id"; return i; } got('enlace privado').then(f => { let a = JSON.parse(f.body) console.log(a) if(a.error){ i = a.error...
asked by 13.08.2018 / 10:26