WebSite-PHP Framework PHP
Multi langues
Mode Ajax simple
Aucun HTML, aucun JavaScript
URL rewrinting
Envoi d'email
Sitemap - RSS - Web service
Télécharger le Framework WebSite-PHP maintenant
 


Loading
 


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

Tutoriels

>

Tutoriel Textbox

>

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


Textbox-07: Tutoriel du composants Textbox du FrameWork PHP WebSite-PHP.

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



Retourner aux tutoriels du composants Textbox



Code source

Code source


Fichier: /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);
    }
}
?>


Retourner aux tutoriels du composants Textbox


Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Accueil Documentation Télécharger Quick start Tutoriels Wiki Issue Tracker