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 : TextBox with presence 
live validation

Tutorials

>

Tutorial Textbox

>

Tutorial : TextBox with presence live validation


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

Tutorial : TextBox with presence live validation:



Go back to tutorial of the componant Textbox



Source code

Source code


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

<?php
class Textbox03 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : TextBox with presence 
                                live validation"
;
        
        
$form = new Form($this); 
        
        
$edt_text = new TextBox($form);
        
$text_box_validation = new LiveValidation();
        
$text_box_validation->addValidatePresence();
        
$text_box_validation->activeValidationOnInit();
        
$edt_text->setLiveValidation($text_box_validation);
        
        
$form->setContent($edt_text);
        
$this->render $form;
    }
}
?>


Go back to tutorial of the componant Textbox


Share

 


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