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 in AJAX

Tutorials

>

Tutorial Textbox

>

Tutorial : TextBox with form, callback method on change in AJAX


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

Tutorial : TextBox with form, callback method on change in AJAX:



Go back to tutorial of the componant Textbox



Source code

Source code


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

<?php
class Textbox07 extends Page {
    private 
$edt_text null;
    
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : TextBox with form, 
                        callback method on change in AJAX"
;
        
        
$form = new Form($this);
        
        
$this->edt_text = new TextBox($form);
        
$this->edt_text->onChange("onChangeTextBox");
        
$this->edt_text->setAjaxEvent();
        
$this->edt_text->setStripTags("<b><i>");
        
        
$form->setContent($this->edt_text);
        
$this->render $form;
    }
    
    public function 
onChangeTextBox($sender) {
        
$dialog = new DialogBox("onChangeTextBox"
                    
$this->edt_text->getValue());
        
$this->addObject($dialog);
    }
}
?>


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