WebSite-PHP Framework PHP
Multi language
Simple Ajax mode
No HTML, no JavaScript
URL rewriting
Mail sending
Sitemap - RSS - Web service
Download WebSite-PHP FrameWork now
 


Loading
 


Tutorial : CheckBox onchange event

Tutorials

>

Tutorial Checkbox

>

Tutorial : CheckBox onchange event


Checkbox-03: Tutorial of the composant Checkbox of the PHP FrameWork WebSite-PHP.

Tutorial : CheckBox onchange event:



Go back to tutorial of the componant Checkbox



Source code

Source code


File: /pages/tutorials/checkbox/checkbox-03.php

<?php
class Checkbox03 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : CheckBox onchange event";
        
        
$this->render = new Form($this);
        
$chk1 = new CheckBox($this->render);
        
$chk1->setText("CheckBox 1");
        
$chk1->onChange("onChangeChk1");
        
$this->render->setContent($chk1);
    }
    
    public function 
onChangeChk1($sender) {
        
alert("CheckBox is ".(!$sender->isChecked()?"not ":"").
                
"checked.");
    }
}
?>


Go back to tutorial of the componant Checkbox


Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Home Documentation Download Quick start Tutorials Wiki Issue Tracker