Questions tagged as 'javascript'

1
answer

Apply CSS styles to Light DOM (shadow DOM) in custom element HTML5

I have read all the documentation about web components and according to the standards it is not possible to apply isolated CSS styles (shadow) to the elements that the user introduces within a custom element (light DOM), that is, the content tha...
asked by 04.11.2017 / 10:38
2
answers

What problems can cause using obsolete javascript functions?

I have the following question, is it a problem to use obsolete javascript functions? As for example using the functions "escape" and "unescape" instead of "encodeURI" and "decodeURI". Greetings.     
asked by 07.03.2018 / 09:37
3
answers

How to verify that the user that I intend to register already exists?

Here is the save process: $nuevoobjeto= new Objeto(); $cedula = $_POST['cedula']; $nombres = $_POST['nombres']; $apellidos = $_POST['apellidos']; $telefono = $_POST['telefono']; $telefono1 = $_POST['telefono1']; $telefono2 = $_POST['telefono2...
asked by 10.04.2018 / 16:37
2
answers

How can I disable the points '.' and commas ',' in a text entry?

Greetings, I need a text entry (text input) like: <input type="text" id="txtNombre" name="txtNombre" value="" placeholder="Ej: Juan" required="" /> Do not let me put '. ' and ', '     
asked by 22.12.2017 / 04:49
3
answers

is there a way to work with sessions or cookies without a database?

Hi, I need to create a simple login form. I'm supposed to work without a database, and once the login accepts me, I redirect to the home.php page, but you can not directly access home.php . But they told me that it had to be done without a da...
asked by 16.10.2016 / 01:34
4
answers

Add a complete html to a div

How about, I'm trying to add an html file to a div <!DOCTYPE html> <html lang="en"> <head> <title>Inicio</title> </head> <body> <div> <!-- este div donde agregare un html--> &l...
asked by 05.05.2016 / 20:56
5
answers

I try to open a modal but it does not work

Good day, I have a modal which when clicking on an image does not activate, the truth already check the code I can not find the error. The code I use is the same one that I had already used on another occasion but now it does not work for me. If...
asked by 09.06.2017 / 16:08
5
answers

How to add the values of the same arrays positions?

I want to add the values of the same positions? Here's my fix: var arr1 = ["1","2","3","4"]; var arr2 = ["2","1","3","4"]; The result must be: var NuevoArreglo = ["3","3","6","8"]; I'm waiting for help.     
asked by 28.06.2016 / 19:56
2
answers

Difference between querySelector, querySelectorAll, getElementbyId, getElementbyTag

I would like if someone could explain to me very easily what are the differences between these 'selectors' since I am struggling to understand them! Especially among the querys and the get element. Thank you very much!     
asked by 03.09.2016 / 22:54
3
answers

Get the value of an element "a" from jQuery

HTML: <a onclick="funcion(this)" value="4">Un Nombre</a> JAVASCRIPT: <script> function(elemento){ console.log(elemento.value); } </script> this is giving me back    undefined     
asked by 04.08.2016 / 04:51