Top "Event-listener" questions

An abstract object that is triggered when a particular event occurs in the application or system.

Android: Difference between onInterceptTouchEvent and dispatchTouchEvent?

What is the difference between onInterceptTouchEvent and dispatchTouchEvent in Android? According to the android developer guide, both methods can be …

java android event-handling event-listener android-touch-event
Difference between document.addEventListener and window.addEventListener?

While using PhoneGap, it has some default JavaScript code that uses document.addEventListener, but I have my own code which …

javascript events dom event-listener
What are passive event listeners?

While working around to boost performance for progressive web apps, I came across a new feature Passive Event Listeners and …

javascript dom-events event-listener passive-event-listeners
Adding Event Listeners on Elements - Javascript

Are there ways for me to listen for onblur or onclick events in javascript from an onload function? instead of …

javascript dom element event-listener
JavaScript custom Event Listener

I was wondering if anyone can help me understand how exactly to create different Custom event listeners. I don't have …

javascript event-listener
Make overlapping div "not clickable" so that content below can be accessed?

I am using a JPG overlay with a reduced opacity for an effect, however I want it as an effect …

javascript jquery css event-listener
PHP Event-Listener best-practice implementation

I am trying to create a CMS-like system in PHP. making it as modular and extendable as possible. Could someone …

php event-listener
How to add event listeners to an array of objects

I have an array of objects (specifically easelJS images) - something like this: var imageArray = new Array; gShape = new createjs.…

javascript extjs event-listener easeljs
reactjs event listener beforeunload added but not removed

I have a react component like : import React, { PropTypes, Component } from 'react' class MyComponent extends Component { componentDidMount() { window.addEventListener("beforeunload", …

javascript reactjs addeventlistener event-listener
JavaScript - how to check if event already added

I want to add an listener exactly once for beforeunload. This is my pseudocode: if(window.hasEventListener('beforeunload') === false) { window.…

javascript event-listener