473,468 Members | 1,906 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

simple question: prototype how to remove Event observer

Hi,

I'm using prototype 1.6 for observer/attachEventHandler, like

Event.observe(myDivId,'mouseup', myFunction);

I'm wondering how to remove or stop (or activate/deactivate) this
observer when condition matched?

Also how to present event was used/observed by other observer?
The Event.stop(e) inside myFunction doesn't seem to help with this.

--
Thanks
John
Jun 27 '08 #1
1 3461
VK
On Apr 17, 5:44 pm, john_woo <john_...@canada.comwrote:
Hi,

I'm using prototype 1.6 for observer/attachEventHandler, like

Event.observe(myDivId,'mouseup', myFunction);

I'm wondering how to remove or stop (or activate/deactivate) this
observer when condition matched?
By typing in "prototype Event observer" in Google and by pressing "I'm
Feeling Lucky" you arrive to
http://www.prototypejs.org/api/event/observe

and in the left menu among other Event methods you see

http://www.prototypejs.org/api/event/stopObserving
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: sanjana | last post by:
hi i wanna detect if a anything is connected to the usb port I am using system.management class for tht purpose this is my code class usbdetect { public static void Main() {
3
by: sham | last post by:
Hi to all, I have an object that has a property numberOfFilesDeleted which is an integer. I want to bind a label to it so that when the value changes, the label gets updated on the screen. I...
10
by: Roger (Bordeaux) | last post by:
Hello everyone, I have a problem with javascripts that runs correctly under EasyPHP 1.7 but not under EasyPHP 1.8 nor WAMP5 1.6. I am using the prototype.js library. I wrote the following :...
12
by: petermichaux | last post by:
Hi, I've been reading the recent posts and older archives of comp.lang.javascript and am surprised by the sentiments expressed about the prototype.js library for a few reasons: 1) The library...
28
by: Diodeus | last post by:
I would like to set up an event observer outside of an object, so I can't use this.bindAsEventListener. How can I pass the correct object reference? I tried something like this, and various...
2
by: Anders Dahnielson | last post by:
Sorry if this is a somewhat silly question... I'm using the Observer implementation found in 'Patterns in Python' and find it really neat. But, I have not yet fully groked the new-style class,...
5
by: Alan Isaac | last post by:
I have two questions about the "observer pattern" in Python. This is question #1. (I'll put the other is a separate post.) Here is a standard example of the observer pattern in Python:
5
by: Alan Isaac | last post by:
I have two questions about the "observer pattern" in Python. This is question #2. (I'll put the other is a separate post.) Consider this standard example of the observer pattern in Python:
4
by: FullBandwidth | last post by:
I have been perusing various blogs and MSDN pages discussing the use of event properties and the EventHandlerList class. I don't believe there's anything special about the EventHandlerList class in...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.