Questions tagged as 'eventos'

2
answers

Substitute one image for another - Events - Javascript - HTML

I have a set of images stored in an array and I show them through the array with a "foreach". PHP Code of how I extract the images and show them: $imagenes = $cabana->getImagenes(); //Recorremos el foreach del array "$imagenes". $first...
asked by 17.11.2017 / 12:40
1
answer

How to add parameters to the EventHandler method that is added to the Click event in C #?

It turns out that I'm starting to program in C #, well, my problem is that I have a Button matrix and when I initialize the buttons I add a method in the Click event, I would like to know if parameters can be passed to the method of the event....
asked by 15.09.2017 / 23:03
2
answers

Problem mouseListener and JTable

I have a class in which I am implementing the events of a frame and I want to make every time that double-clicking on a table opens another window and shows me the data of that object, I am implementing the mouseListener interface to the class...
asked by 09.09.2016 / 13:01
1
answer

check the existence of several files in javascript

The following SCRIPT checks the existence of files whose names are in an Array, if there is no file it shows a warning The output is made through a table. var table = document.getElementById('dataTable'); var pagina = ['pepito.html', 'I...
asked by 28.07.2017 / 21:19
1
answer

Correct way to use event listener to be able to add many radio buttons?

I wanted to know if there would be any way that my script can handle the amount of radio buttons that I put to it and not have to refactor my code js. Could someone give me a hand? I have an idea to put an event listener to all the radio buttons...
asked by 12.09.2016 / 16:01
1
answer

Show an alert before the refresh action?

What I'm looking for is the following: At the moment when the action is triggered to refresh the page, a message like this appears before me: swal({ title: "Se perderan los datos", text: "¿Desea refresca...
asked by 23.10.2017 / 17:08
1
answer

Help Json Objects browse and display DOM JavaScript

I need help, I do not know how to get this out  If you click on a region you should appear next to the capital in red and below in different sub-lines all the populations ordered alphabetically (which you will ALWAYS get from the JSON) • Coma...
asked by 03.03.2018 / 16:04
5
answers

Do not run event when a text box has focus

I have a function so that when you press a key, for example "and", youtube will open (as an event listener of 'keydown') I have a input where I can not write because when I press one of the keys I already have as a shortcut inside the...
asked by 28.10.2017 / 06:38
4
answers

How to create a custom event in javascript

Good, I am created a function that verifies the state of a global variable, this variable must be constantly verifying it to know if I change its value. The idea is that call this function and that it can return for example an event of type s...
asked by 10.04.2017 / 23:21
3
answers

What is the best way to use an event in javascript? [closed]

Hello, I am starting in the world of programming in specific JavaScript, and I have a doubt, I am learning about events (onclick, onmouseover, etc). And my doubt is that I have seen that many use events in different ways, we write them in the...
asked by 10.04.2017 / 16:32