By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,647 Members | 1,178 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,647 IT Pros & Developers. It's quick & easy.

simple question: prototype how to remove Event observer

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.