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 : TextArea with 
onchange event

Tutorials

>

Tutorial Textarea

>

Tutorial : TextArea with onchange event


Textarea-04: Tutorial of the composant Textarea of the PHP FrameWork WebSite-PHP.

Tutorial : TextArea with onchange event:



Go back to tutorial of the componant Textarea



Source code

Source code


File: /pages/tutorials/textarea/textarea-04.php

<?php
class Textarea04 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : TextArea with 
                            onchange event"
;
        
        
$this->render = new Form($this);
        
        
$this->textarea = new TextArea($this->render);
        
$this->textarea->setValue("TextArea with onchange event");
        
$this->textarea->setWidth(300);
        
$this->textarea->onChange("onChangeTextArea");
        
        
$this->render->setContent($this->textarea);
    }
    
    public function 
onChangeTextArea($sender) {
        
alert("TextArea value : ".$this->textarea->getValue());
    }
}
?>


Go back to tutorial of the componant Textarea


Share

 


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