Beispiel #1
0
 /**
  * Prepares the XHTML data
  *
  * @access  public
  */
 function buildXHTML()
 {
     parent::buildXHTML();
     $this->_XHTML .= '<div id="' . $this->_id . '_autocomplete_choices" class="autocomplete"></div>';
     $this->_XHTML .= "\n";
     $this->_XHTML .= "<script type=\"text/javascript\">\n";
     $this->_XHTML .= " new Ajax.Autocompleter(\"" . $this->_id . "\", \"" . $this->_id . "_autocomplete_choices\", ";
     $this->_XHTML .= "\"" . $this->_url . "\", {paramName: \"value\", ";
     if (!empty($this->_updateFunction)) {
         $this->_XHTML .= 'updateElement: ' . $this->_updateFunction . ', ';
     }
     $this->_XHTML .= "minChars: 3});\n";
     $this->_XHTML .= "</script>\n";
 }
Beispiel #2
0
 /**
  * Build the XHTML data
  *
  * @access  private
  */
 function buildXHTML()
 {
     $this->addFile(PIWI_URL . 'piwidata/js/calendar.js');
     $this->addEvent(new JSEvent(ON_FOCUS, "popUpCalendar(this, this, 'dd/mm/yyyy', " . $this->_displayToday . ", " . $this->_displayWeek . ", " . $this->_startDay . ")"));
     $this->addEvent(new JSEvent(ON_FOCUS, "this.blur()"));
     $this->setReadOnly(true);
     parent::buildXHTML();
 }