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 : CheckBox onchange Ajax event
            with a personal waiting message

Tutoriels

>

Tutoriel Checkbox

>

Tutorial : CheckBox onchange Ajax event with a personal waiting message


Checkbox-04: Tutoriel du composants Checkbox du FrameWork PHP WebSite-PHP.

Tutorial : CheckBox onchange Ajax event with a personal waiting message:



Retourner aux tutoriels du composants Checkbox



Code source

Code source


Fichier: /pages/tutorials/checkbox/checkbox-04.php

<?php
class Checkbox04 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : CheckBox onchange Ajax event
                    with a personal waiting message"
;
        
        
$this->render = new Form($this);
        
$chk1 = new CheckBox($this->render);
        
$chk1->setText("CheckBox 1");
        
$chk1->onChange("onChangeChk1");

        
$chk1->setAjaxEvent();
        
$chk1->setAjaxWaitMessage("My personal waiting message");

        
$this->render->setContent($chk1);
    }
    
    public function 
onChangeChk1($sender) {
        
alert("CheckBox is ".(!$sender->isChecked()?"not ":"").
                
"checked.");
    }
}
?>


Retourner aux tutoriels du composants Checkbox


Share

 


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