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
LiveValidation

Tutorials

>

Tutorial Textarea

>

Tutorial : TextArea with LiveValidation


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

Tutorial : TextArea with LiveValidation:



Go back to tutorial of the componant Textarea



Source code

Source code


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

<?php
class Textarea03 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : TextArea with
                                LiveValidation"
;
        
        
$this->render = new Form($this);
        
        
$textarea = new TextArea($this->render);
        
$textarea->setValue("TextArea with LiveValidation");
        
$lv = new LiveValidation();
        
$lv->addValidatePresence();
        
$textarea->setLiveValidation($lv);
        
$textarea->setWidth(300);
        
        
$this->render->setContent($textarea);
    }
}
?>


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