search for: onobserverev

Displaying 6 results from an estimated 6 matches for "onobserverev".

2006 Feb 13
2
[PATCH] Allow generic autocompleter (Ajax.Watcher)
...k; + this.observer = null; + this.active = false; + this.changed = false; + Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); + if (this.options.firstRun) { + this.onObserverEvent(); + } + }, + onKeyPress: function(event) { + this.changed = true; + this.hasFocus = true; + + if(this.observer) clearTimeout(this.observer); + this.observer = + setTimeout(this.onObserverEvent.bind(this), this.options.frequency*1000); + }, + onObserve...
2005 Jul 09
7
Extending the AJAX autocompleter
Hi (I think Thomas?), I am trying to extending the AJAX autocompleter here, and would need to pass on additional params to the Framework I am using which is taking on the request. For this, I have changed the onObserverEvent function in controls.js as to the following: onObserverEvent: function() { this.changed = false; if(this.element.value.length>=this.options.min_chars) { this.startIndicator(); //here starts my change if(this.options.parameters && this.options.parameters.leng...
2006 Jun 19
2
Autocompleter enhancement feature request
...his.onBlur.bindAsEventListener(this)); Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this)); Event.observe(this.element, "focus", this.onKeyPress.bindAsEventListener(this)); The last line is what I have added. And then I have commented some code: onObserverEvent: function() { this.changed = false; // if(this.getToken().length>=this.options.minChars) { this.startIndicator(); this.getUpdatedChoices(); // } else { // this.active = false; // this.hide(); // } }, These changes are not in the best tradition...
2006 Mar 01
4
[Fwd: [PATCH] Allow generic autocompleter (Ajax.Watcher)]
Patch to allow generic Ajax.Autocompleter-style textbox watchers. Forwarded for "[Rails-spinoffs] Delayed input posting" -Rob _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...event.keyCode==Event.KEY_RETURN || (Prototype.Browser.WebKit > 0 && event.keyCode == 0)) return; this.changed = true; this.hasFocus = true; if(this.observer) clearTimeout(this.observer); - this.observer = + this.observer = setTimeout(this.onObserverEvent.bind(this), this.options.frequency*1000); }, @@ -170,35 +170,35 @@ Autocompleter.Base = Class.create({ onHover: function(event) { var element = Event.findElement(event, 'LI'); - if(this.index != element.autocompleteIndex) + if(this.index != element.autocompleteIndex...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server