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 form, 
callback method on change

Tutorials

>

Tutorial Textbox

>

Tutorial : TextBox with form, callback method on change


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

Tutorial : TextBox with form, callback method on change:



Go back to tutorial of the componant Textbox



Source code

Source code


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

<?php
class Textbox06 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : TextBox with form, 
                                callback method on change"
;
        
        
$form = new Form($this);
        
        
$edt_text = new TextBox($form);
        
$edt_text->onChange("onChangeTextBox");
        
$edt_text->setStripTags();
        
        
$form->setContent($edt_text);
        
$this->render $form;
    }
    
    public function 
onChangeTextBox($sender) {
        
$this->addObject(new JavaScript("alert('change');"));
    }
}
?>


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