Questions tagged as 'javascript'

2
answers

Problems with css, js and addressing when passing to the server with codeigniter

Some time ago I am working on a project that I developed in Codeigniter 3.x where I carry out the typical actions of CRUD, in addition to the call to JOBS in SQL Server. When testing the service locally, it does not present any inconvenience,...
asked by 17.11.2017 / 12:56
3
answers

Store javascript result in a php variable

There is some way to make this code work: <script> function getBaseURL() { // obtenemos el hash var jash = window.location.hash; // lo imprimimos return jash; } </script> <?php $url1 = "<script>getBaseURL();</script&g...
asked by 14.11.2017 / 14:02
2
answers

Problem with promise when collecting values that returns

Within a function, I need to call another in which I have used promises and return a series of data that I need to follow. My problem is that I do not know if I'm doing it right or not, because does not throw an error but it returns an empty...
asked by 15.11.2017 / 09:57
3
answers

Problem when validating DNI JavaScript [duplicated]

I am starting to learn JavaScript and I had a doubt when validating a DNI. The regular expression to check that it has 8 numbers and a letter of the alphabet does not work for me. //Se pide el número completo del DNI (12345678X) va...
asked by 13.10.2017 / 11:21
2
answers

Scroll menu does not let Jquery javascript go up

I have the following form <div class="container"> <div class="row" > <div class="panel panel-default"> <div class="panel-heading">ADAPTOR CHATBOT</div> <div class="panel-body"> <di...
asked by 22.09.2017 / 12:16
2
answers

Access items within the then of a promise

I have this promise that is responsible for assigning an image to the items that I bring from another endpoint, it worked fine until I wanted to pass a title parameter to the getImage function, I had to put the for out of it to iterate and pass...
asked by 31.01.2018 / 15:54
2
answers

Program ESC key in JavaScript for IE 11

Good morning everyone, I have a problem with a script that works in Chrome but not in Internet Explorer, the script redirects when you press the Esc button (27) using the event.keycode lei that is not compatible with IE11, how could I wor...
asked by 05.12.2017 / 12:27
2
answers

How to do an alphanumeric validation in Javascript?

Good, I'm trying to make the user have to enter if or if at least a number or a letter, otherwise than error. //Caracteres permitidos var letras = "abcdefghijklmnopqrstuvwxyz"; var numeros = "0123456789"; var correcto = 0; var correc...
asked by 02.12.2017 / 17:30
3
answers

Problem with "replace" in arrays [closed]

Good morning, I am trying to use "replace" in this that I show acontinuation: var inconvenientes1 = [ 'BACA', 'LOCA', 'BUEY', 'COLA' ]; var inconvenientes2 = [ 'BACX', 'LOCX', 'BUEX', 'COLX' ]; for(var i = 0; i<inconvenientes1.length;i++){...
asked by 19.12.2017 / 04:25
3
answers

How to filter data from an array of objects using RegExp?

From the following array of objects How can I filter all emails containing the word director of the property POST, without distinguishing between uppercase or lowercase, only containing that word? var regs = [ {EMAIL:"directorgra...
asked by 30.11.2017 / 22:33