Lines Matching refs:element
22 // this.element.value. This is to allow incremental tokenized
43 baseInitialize: function(element, update, options) {
44 this.element = $(element);
57 this.options.paramName = this.options.paramName || this.element.name;
62 function(element, update){
65 Position.clone(element, update, {
67 offsetTop: element.offsetHeight
73 function(element, update){ new Effect.Fade(update,{duration:0.15}) };
80 this.element.setAttribute('autocomplete','off');
84 Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this));
85 Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this));
89 if(Element.getStyle(this.update, 'display')=='none') this.options.onShow(this.element, this.update);
112 if(Element.getStyle(this.update, 'display')!='none') this.options.onHide(this.element, this.update);
169 var element = Event.findElement(event, 'LI');
170 if(this.index != element.autocompleteIndex)
172 this.index = element.autocompleteIndex;
179 var element = Event.findElement(event, 'LI');
180 this.index = element.autocompleteIndex;
248 var newValue = this.element.value.substr(0, lastTokenPos + 1);
249 var whitespace = this.element.value.substr(lastTokenPos + 1).match(/^\s+/);
252 this.element.value = newValue + value;
254 this.element.value = value;
256 this.element.focus();
259 this.options.afterUpdateElement(this.element, selectedElement);
292 addObservers: function(element) {
293 Event.observe(element, "mouseover", this.onHover.bindAsEventListener(this));
294 Event.observe(element, "click", this.onClick.bindAsEventListener(this));
311 var ret = this.element.value.substr(tokenPos + 1).replace(/^\s+/,'').replace(/\s+$/,'');
313 var ret = this.element.value;
322 var thisTokenPos = this.element.value.lastIndexOf(this.options.tokens[i]);
332 initialize: function(element, update, url, options) {
333 this.baseInitialize(element, update, options);
345 this.options.callback(this.element, entry) : entry;
396 initialize: function(element, update, array, options) {
397 this.baseInitialize(element, update, options);
471 initialize: function(element, url, options) {
473 this.element = $(element);
485 onComplete: function(transport, element) {
486 new Effect.Highlight(element, {startcolor: this.options.highlightcolor});
507 if(!this.options.formId && this.element.id) {
508 this.options.formId = this.element.id + "-inplaceeditor";
519 this.originalBackground = Element.getStyle(this.element, 'background-color');
524 this.element.title = this.options.clickToEditText;
529 Event.observe(this.element, 'click', this.onclickListener);
530 Event.observe(this.element, 'mouseover', this.mouseoverListener);
531 Event.observe(this.element, 'mouseout', this.mouseoutListener);
546 Element.hide(this.element);
548 this.element.parentNode.insertBefore(this.form, this.element);
637 return this.element.innerHTML;
664 this.element.innerHTML = this.oldInnerHTML;
690 { success: this.element,
712 this.oldInnerHTML = this.element.innerHTML;
713 this.element.innerHTML = this.options.savingText;
714 Element.addClassName(this.element, this.options.savingClassName);
715 this.element.style.backgroundColor = this.originalBackground;
716 Element.show(this.element);
726 this.element.style.backgroundColor = this.options.highlightcolor;
730 Element.addClassName(this.element, this.options.hoverClassName)
734 this.element.style.backgroundColor = this.oldBackground;
736 Element.removeClassName(this.element, this.options.hoverClassName)
738 this.effect = new Effect.Highlight(this.element, {
745 Element.removeClassName(this.element, this.options.savingClassName);
748 this.element.style.backgroundColor = this.originalBackground;
749 Element.show(this.element);
760 this.options.onComplete.bind(this)(transport, this.element);
766 this.element.innerHTML = this.oldInnerHTML;
769 Event.stopObserving(this.element, 'click', this.onclickListener);
770 Event.stopObserving(this.element, 'mouseover', this.mouseoverListener);
771 Event.stopObserving(this.element, 'mouseout', this.mouseoutListener);
792 ((e instanceof Array) ? this.element.innerHTML == e[1] : e == optionTag.value)) optionTag.selected = true;
815 initialize: function(element, delay, callback) {
817 this.element = $(element);
820 this.lastValue = $F(this.element);
821 Event.observe(this.element,'keyup',this.delayedListener.bindAsEventListener(this));
824 if(this.lastValue == $F(this.element)) return;
827 this.lastValue = $F(this.element);
831 this.callback(this.element, $F(this.element));