Displaying 6 results from an estimated 6 matches for "registercallbacks".
Did you mean:
registercallback
2008 May 07
2
prototype PeriodicalExecuter pause/restart patch
I''ve come up with a patch to PeriodicalExecuter which allows for
pausing and restarting without losing the time remaining. I''ve
searched for something like this, but the only one I found linked to a
dead blog. I wondered if anyone would look over the code, maybe it
will make its way into the official release.
var PeriodicalExecuter = Class.create({
initialize:
2007 Aug 31
0
observe_field is not working everytime in IE 6.0
Hi,
This is Atit here. I am working on Ruby on Rails. I have one
functionality in which, I have two drop down. Second drop down list is
dependent on first one. So changing value of first drop down is
refreshing the second drop down. I have used observe_field to
implement this functionality. This is working fine in Fire Fox but in
IE 6.0 it is not populating second drop down every
2006 Mar 09
2
extending an existing DOM object in a prototype way
...iveSpan class extend it with some functionality (like
onclick events, attributes, etc)
here''s what I have in mind, but I''m not sure this is exactly correct:
var ActiveSpan = Class.create();
ActiveSpan.prototype = {
initalize: function(span) {
Object.extend(span, this);
this.registerCallbacks();
},
registerCallbackss: function() {
Event.observe(this, ''click'', clickHandler.bindAsEventListener(this);
},
clickHandler: function(e) {
this.style.background = "red";
}
}
does this look right? Also, I''ll eventually want to go through the
child elem...
2006 Mar 09
0
RE: extending an existing DOM object in a prototypeway
...setup: function() {
//making this an instance method ensures you are wiring
up events to a DOM element (i.e. the element has already been extended
with this class -- "this" will now be the DOM element extended with the
ActiveSpan methods, and not just an "ActiveSpan")
this.registerCallbacks();
}
registerCallbackss: function() {
//ALWAYS store DOM handlers in variables so you can
dispose of them (prevent memory leaks)
this.clickHandlerPointer =
this.clickHandler.bindAsEventListener(this);
Event.observe(this, ''click'', this.clickHandlerPointer);
},
clickHandle...
2006 Mar 09
0
RE: extending an existing DOM object in aprototypeway
...setup: function() {
//making this an instance method ensures you are wiring
up events to a DOM element (i.e. the element has already been extended
with this class -- "this" will now be the DOM element extended with the
ActiveSpan methods, and not just an "ActiveSpan")
this.registerCallbacks();
}
registerCallbackss: function() {
//ALWAYS store DOM handlers in variables so you can
dispose of them (prevent memory leaks)
this.clickHandlerPointer =
this.clickHandler.bindAsEventListener(this);
Event.observe(this, ''click'', this.clickHandlerPointer);
},
clickHandle...
2005 Nov 04
1
prototype EventObserver on radio option elements
Hi all,
I just started using prototype 1.3.1. I''ve successfully used
Form.Element.EventObserver on a select list and recently tried to add it
to radio options. However, I think there is a flaw in how it works with
radio options.
Radio options are a little unusual in that there are multiple distinct
elements, tied together by a common name, where changing one element
causes a