[Proto-Scripty] Re: Is there a way to DRY this up?

2010-12-23 Thread Neaox
Like this?: function filterHandler(evt){this.fire('check:filter');} $('filter').observe('keyup', filterHandler).observe('click',filterHandler).observe('focus', filterHandler).observe('blur', filterHandler); See Observe Documentation: http://www.prototypejs.org/api/event/observe As the

[Proto-Scripty] Re: Behavioral of select option

2010-12-23 Thread Neaox
Hi I think the error might be to do with this section of code: ...).down('input.previous')... this is calling for the first input with a class name of 'previous' within the element with the id of 'paging', what I'm assuming you were trying to do was get the element that comes before the first

[Proto-Scripty] Re: PeriodicalExecuter counter

2010-12-23 Thread Neaox
Hi, Below is a patch to PeriodicalExecuter that should do what your asking, I have Prototype 1.7.min and this patch is untested: var PeriodicalExecuter=Class.create({initialize:function(callback,frequency)

[Proto-Scripty] Locking an Event Listener/Observe

2010-10-17 Thread Neaox
Hi, I am wanting the ability to lock an event as I register it so that is can't be removed or unregistered for example Event.Observe('element_id', 'click', function_name, true); The last parameter being a boolean value for locking the event or not, which would be false by default.