All Questions

4
answers

How to know which key was pressed

I need that every time a key is pressed, a function will be executed, which will vary depending on the key that was pressed. So I need to know what key was pressed. This is what I have so far: function onKeyDownHandler() { conso...
asked on 30.06.2017 / 16:30
6
answers

Can more than one id be placed in a single input type text?

my question is if you can place more than one id in an input because I have a function in javacript that I send it to call in the id of an input type text but in that input I also have to have the id with the variable in my database. where the...
asked on 22.02.2017 / 20:56
2
answers

Obtain the first free or id id in mysql

I would like to know if there is any way to know the first free mysql record, but not the last, if not the first free that exists.    Ex:       I have a busy record 1,2,3,6,7,8,9   the first free would be 5 At the moment I have a code...
asked on 01.02.2017 / 20:37
6
answers

Add 2 inputs side by side in the same column

I'm putting together a form in Bootstrap, and I want 2 inputs in the same row and column, side by side. I tried the class input-group , with which I could add buttons and labels to the inputs, but when I put 2 inputs within a input-g...
asked on 18.02.2016 / 15:10
2
answers

context this in function arrow with prototype

In the following example I have a class and add two functions by prototype the first as defined by funcion normalmente , while the second with arrow function simpleClase = function(){ this.ejemplo = 1 } simpleClas...
asked on 02.02.2018 / 02:51
2
answers

Guide to style and good practices PHP

Many times I find hard code to read, as it is not structured or indented. In SOes we can find multiple examples of this. Searching the site for a question that addresses this issue, I found this @ A.Cedano , Convention of names in PHP , bu...
asked on 24.11.2017 / 00:34
4
answers

Understanding the indexOf

Why when using the indexOf method should the condition to find the words beginning with "A" be equal to 0? let teachers =["Alexys", "Jon", "Daniel", "Francisco", "Rafa",...
asked on 12.02.2018 / 21:34
0
answers

SSL error when posting new entry

Today I found an error when using the Zend to publish in my blog blogger. Using PHP this is the code: <?php set_time_limit(0); date_default_timezone_set('America/Argentina/Buenos_Aires'); if (isset($_POST['submit'])) { // load Zend Gdata...
asked on 23.03.2018 / 04:15
2
answers

Why do accumulatives accumulate in a cycle that must be presented separately in PHP?

I have a table that generates records with different values, for each record there will be a value called atenuante which represents a selection made with checkbox . These values are saved as a string de la forma 1-2 and...
asked on 26.04.2017 / 17:02
2
answers

Send a string as a file using request in Node

I have a String and I want to convert it to a stream to send it as if it were a file via multipart of request . I want to do it in the air, without generating the file on disk. I'm doing it this way: const stream = requi...
asked on 15.03.2017 / 17:54