public/javascripts/inputex/build/inputex.js
function() {
   
      // This element wraps the input node in a float: none div
      this.wrapEl = inputEx.cn('div', {className: 'inputEx-StringField-wrapper'});
      
      // Attributes of the input field
      var attributes = {
         type: 'text',
         id: YAHOO.util.Dom.generateId()
      };
      if(this.options.size) attributes.size = this.options.size;
      if(this.options.readonly) attributes.readonly = 'readonly';
      if(this.options.maxLength) attributes.maxLength = this.options.maxLength;

      // Create the node
      this.el = inputEx.cn('input', attributes);
      
      // Create the hidden input
      var hiddenAttrs = {
         type: 'hidden',
         value: ''
      };
      if(this.options.name) hiddenAttrs.name = this.options.name;
      this.hiddenEl = inputEx.cn('input', hiddenAttrs);
      
      // Append it to the main element
      this.wrapEl.appendChild(this.el);
      this.wrapEl.appendChild(this.hiddenEl);
      this.fieldContainer.appendChild(this.wrapEl);
   
      // Render the list :
      this.listEl = inputEx.cn('div', {id: Dom.generateId() });
      this.fieldContainer.appendChild(this.listEl);
       
      Event.onAvailable([this.el, this.listEl], this.buildAutocomplete, this, true);
   }
function() {
   
      // This element wraps the input node in a float: none div
      this.wrapEl = inputEx.cn('div', {className: 'inputEx-StringField-wrapper'});
      
      // Attributes of the input field
      var attributes = {
         type: 'text',
         id: YAHOO.util.Dom.generateId()
      };
      if(this.options.size) attributes.size = this.options.size;
      if(this.options.readonly) attributes.readonly = 'readonly';
      if(this.options.maxLength) attributes.maxLength = this.options.maxLength;

      // Create the node
      this.el = inputEx.cn('input', attributes);
      
      // Create the hidden input
      var hiddenAttrs = {
         type: 'hidden',
         value: ''
      };
      if(this.options.name) hiddenAttrs.name = this.options.name;
      this.hiddenEl = inputEx.cn('input', hiddenAttrs);
      
      // Append it to the main element
      this.wrapEl.appendChild(this.el);
      this.wrapEl.appendChild(this.hiddenEl);
      this.fieldContainer.appendChild(this.wrapEl);
   
      // Render the list :
      this.listEl = inputEx.cn('div', {id: Dom.generateId() });
      this.fieldContainer.appendChild(this.listEl);
       
      Event.onAvailable([this.el, this.listEl], this.buildAutocomplete, this, true);
   }
function ( ) { // This element wraps the input node in a float: none div this . wrapEl = inputEx . cn ( 'div' , { className : 'inputEx-StringField-wrapper' } ) ; // Attributes of the input field var attributes = { type : 'text' , id : YAHOO . util . Dom . generateId ( ) } ; if ( this . options . size ) attributes . size = this . options . size ; if ( this . options . readonly ) attributes . readonly = 'readonly' ; if ( this . options . maxLength ) attributes . maxLength = this . options . maxLength ; // Create the node this . el = inputEx . cn ( 'input' , attributes ) ; // Create the hidden input var hiddenAttrs = { type : 'hidden' , value : '' } ; if ( this . options . name ) hiddenAttrs . name = this . options . name ; this . hiddenEl = inputEx . cn ( 'input' , hiddenAttrs ) ; // Append it to the main element this . wrapEl . appendChild ( this . el ) ; this . wrapEl . appendChild ( this . hiddenEl ) ; this . fieldContainer . appendChild ( this . wrapEl ) ; // Render the list : this . listEl = inputEx . cn ( 'div' , { id : Dom . generateId ( ) } ) ; this . fieldContainer . appendChild ( this . listEl ) ; Event . onAvailable ( [ this . el , this . listEl ] , this . buildAutocomplete , this , true ) ; }
Render the hidden list element
Render the hidden list element