WebSite-PHP Framework PHP
Mehrsprachig
Einfacher Ajax Modus
Kein HTML, kein JavaScript
URL Rewriting
Mails senden
Sitemap - RSS - Web service
Laden Sie WebSite-PHP FrameWork jetzt herunter
 


Loading
 


Tutorial : ComboBox with form, 
callback method on change

Tutorials

>

Tutorial Combobox

>

Tutorial : ComboBox with form, callback method on change


Combobox-06: Tutorial der Komponente Combobox vom PHP FrameWork WebSite-PHP.

Tutorial : ComboBox with form, callback method on change:




Zurück zum Tutorial der Komponente Combobox



Quelltext

Quelltext


Datei: /pages/tutorials/combobox/combobox-06.php

<?php
class Combobox06 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : ComboBox with form, 
                                    callback method on change"
;
        
        
$form = new Form($this);
        
        
$combo = new ComboBox($form);
        
$combo->addItem("value 1""value 1");
        
$combo->addItem("value 2""value 2");
        
$combo->addItem("value 3""value 3");
        
$combo->onChange("onChangeCombo");
        
        
$form->setContent($combo);
        
$this->render $form;
        
$this->render = new WSPObject($this->render"<br/>");
    }
    
    public function 
onChangeCombo($sender) {
        
$this->addObject(new JavaScript("alert('change');"));
    }
}
?>


Zurück zum Tutorial der Komponente Combobox


Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Start Dokumentation Herunterladen Schnellstart Tutorials Wiki Issue Tracker