All Questions

3
answers

Add keyup to an input when it is created by javascript and not by html

In JavaScript I'm creating a input and I'm adding classes. I want to add a keyup . // Creacion de input para "monto" var monto_inp = document.createElement("input"); monto_inp.name = "monto"; monto_inp.placeholder = "Monto"; monto...
asked on 21.08.2018 / 13:55
3
answers

Allow enter only numbers in text box with javascript for mobile devices

I have a function in JavaScript to fill out forms that allows me to only enter numbers in a text box. The problem is that it only works on computers and not on mobile devices. function validarNumero(e) { tecla = (document.all) ? e.keyCo...
asked on 14.08.2018 / 08:27
1
answer

Problem with CSS property to scroll [closed]

I have a chat, and as you know, I have to make it scroll in some way where the messages are seen. For that I have the property overflow and I put the value to him auto, but this does not show the last message once it is sent, it is necessary to...
asked on 23.07.2018 / 04:52
2
answers

Send post to the same page without reloading [closed]

You can send a post to the same php page and then I can put if isset $_POST ['data'] do something? Because what I want is that when I click, an element is added to my php array that I save in the session but I do not want to see the effec...
asked on 14.08.2018 / 14:43
1
answer

Time control of the turns of a loop

I'm doing a practice with callback functions I have an array with three indices or positions, what I want to know is if you can make it go through the array and print the value of the first position or index of the array then wait 2 seconds to p...
asked on 27.07.2018 / 14:15
1
answer

How to handle ERROR .Find (). Column in VBA?

I have the following line of code: columna_inicio = Range("4:4").Find(fecha).Column The problem is that if date does not exist, the program releases an error. How can I handle this? I tried using the Try Catch but I can not get it to...
asked on 27.07.2018 / 09:00
3
answers

.prop ('disabled', true); does not work in function Each JS

My idea is for my form to go through the inputs of type number and if the total of these is higher than the variable faltan then disable the inputs that are at zero. Apparently the function works to a certain extent, but when it comes to...
asked on 06.08.2018 / 15:41
1
answer

Select HTML elements inside another with jQuery

Let's say that I have a function defined in JQuery, I write it in a simplified way: miFunc = function(elem) { ... } elem is an HTML element. It could be a past element when making the call for some mouse event. For example, a div...
asked on 16.02.2016 / 16:33
1
answer

Remove Action Bar from a single Layout

I wanted to know how to do to remove the action bar from a single Layout, but in the others if it is. For example, in the login screen of the application that is not the Action bar, but once the session starts and changes layout if the action ba...
asked on 03.04.2016 / 06:07
3
answers

Transform php array to an array with objects?

I get the following array, all data are separated by a *, I tried to use explode and implode without results, I think something more complex is needed to solve it using php 5.6 Array ( [0] => [1] => 1 [2]...
asked on 08.08.2018 / 16:19