Questions tagged as 'javascript'

2
answers

Execute .exe from html

Good morning How could I make a windows program run when I clicked on an image? <img src="smiley.png" alt="Smiley face" height="42" width="42"> The images I put in this way to the html, and I want to click on that image to run, for...
asked by 15.11.2017 / 12:55
3
answers

Replace javascript characters

I need to replace some characters with others in an input on the fly and I thought that with javascript I can solve it. The theme is the following:  I have an input that reads EAN13 codes and I have it ready so that when I insert the numbers...
asked by 24.04.2017 / 21:35
3
answers

How do I choose the value of a select that does not have an identifier but its div?

I'm using the Chrome console to try this because I would use it as a script to save time on a task I do. The idea is this, I have this <div id="seccion1"> <select> <option value=1>Ejemplo 1</option>...
asked by 03.02.2017 / 01:58
4
answers

Any expression that removes% 20 from a javascript string?

Example with javascript var name = "Pedro Canche"; var newname = name.replace("%20", " ");    departure: Pedro Canche but when it is like this: var name = "Pedro Misael Canche Angulo"; var newname = name.replace("%20", " ");    exi...
asked by 05.03.2018 / 18:32
4
answers

Where does this point in this first example?

There is one thing that I do not understand and it is in this case: the operation of this . This will always point to the object containing the function and the this will be called from the function, my second this...
asked by 20.12.2017 / 12:00
2
answers

Separate single quote in String JS

I have a string like this: var cadena = '<form name="name" th:action=" 'ERROR' ">'; I have some single quotes within the string and that is what limits the start and the end, how can I do to include the escape characters as part of th...
asked by 04.06.2018 / 13:47
3
answers

how to find repeated in a javascript array [duplicated]

Hello Friends given an array: var x = [1,9,2,1,5,6,2,9]; How could you identify the elements that are repeated in the array x and put those repeated in another array? I know I have to go through it with for (i=0; i<x.length;i++)...
asked by 29.05.2018 / 04:32
1
answer

problems with making sql queries in nodejs

The id is passed by parameter to my query function, but it fails to execute the query this is my code: objBD.query('SELECT u.ID_U, u.nombre, l.ID_L,letra, t.ID_T,tiempo from USUARIO u INNER JOIN LETRA l ON u.ID_U = l.ID_U INNER JOIN TIEMPOS...
asked by 05.10.2016 / 18:39
1
answer

Table hide show checkbox

I have asp gridview that the server throws me with format, the client side looks like this <div class="row"> <div class="col-md-12"> <input id="chkPer" type="checkbox" name="chkPer" checked="checked" /><label...
asked by 27.09.2016 / 20:09
2
answers

compare a chain of javascript

I have an ajax script which goes and queries a mysql DB in a php, if there is a record I return an echo "success"; and if not "without success"; $total = mysql_num_rows(mysql_query("SELECT * FROM dispositivos WHERE serie ='$serial'")); if($tot...
asked by 19.09.2017 / 20:57