469,271 Members | 1,009 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

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 3229
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by sanjana | last post: by
3 posts views Thread by sham | last post: by
10 posts views Thread by Roger (Bordeaux) | last post: by
12 posts views Thread by petermichaux | last post: by
2 posts views Thread by Anders Dahnielson | last post: by
5 posts views Thread by Alan Isaac | last post: by
5 posts views Thread by Alan Isaac | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.