WebSite-PHP Framework PHP
Multi langues
Mode Ajax simple
Aucun HTML, aucun JavaScript
URL rewrinting
Envoi d'email
Sitemap - RSS - Web service
Télécharger le Framework WebSite-PHP maintenant
 


Loading
 


Tutorial : ComboBox with form, 
callback method on change in AJAX

Tutoriels

>

Tutoriel Combobox

>

Tutorial : ComboBox with form, callback method on change in AJAX


Combobox-07: Tutoriel du composants Combobox du FrameWork PHP WebSite-PHP.

Tutorial : ComboBox with form, callback method on change in AJAX:




Retourner aux tutoriels du composants Combobox



Code source

Code source


Fichier: /pages/tutorials/combobox/combobox-07.php

<?php
class Combobox07 extends Page {
    private 
$combo null;
    
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : ComboBox with form, 
                            callback method on change in AJAX"
;
        
        
$form = new Form($this);
        
        
$this->combo = new ComboBox($form);
        
$this->combo->addItem("value 1""value 1");
        
$this->combo->addItem("value 2""value 2");
        
$this->combo->addItem("value 3""value 3");
        
$this->combo->onChange("onChangeCombo");
        
$this->combo->setAjaxEvent();
        
$this->combo->setStripTags();
        
        
$form->setContent($this->combo);
        
$this->render $form;
        
$this->render = new WSPObject($this->render"<br/>");
    }
    
    public function 
onChangeCombo($sender) {
        
$dialog = new DialogBox("onChangeCombo"
                        
$this->combo->getValue());
        
$this->addObject($dialog);
    }
}
?>


Retourner aux tutoriels du composants Combobox


Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Accueil Documentation Télécharger Quick start Tutoriels Wiki Issue Tracker