I'm using one customization in Autocomplete code, for when user just click on the text field one list of default options is displayed. This costumization is working fine.
The problem is, I need show exactly the same options when text field is empty (without characters). I tried some solutions, but all of them was not good, and the options is displayed and just disapear. onClickNew: function() { > var element = this.update.getElementsByTagName('LI'); > //console.log(element.length); > if(this._item_cache == "" && element.length !== 0 ){ // > this.update.innerHTML !== "" this._item_cache = this.update.innerHTML; } > this.changed=false; > this.hasFocus=true; > if(!this._is_first || this._item_cache == "" ){ > this.getUpdatedChoices(); > } > if(this._is_first && this._item_cache !== ""){ > this.updateChoices(this._item_cache); > //console.log('cache setup korce'); } > this.show(); }, Some ideas? Thank very much! -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/bl7uzLftXRAJ. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.