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 : Button with form, 
callback method on click

Tutoriels

>

Tutoriel Button

>

Tutorial : Button with form, callback method on click


Button-04: Tutoriel du composants Button du FrameWork PHP WebSite-PHP.

Tutorial : Button with form, callback method on click:



Retourner aux tutoriels du composants Button



Code source

Code source


Fichier: /pages/tutorials/button/button-04.php

<?php
class Button04 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Button with form, 
                                    callback method on click"
;
        
        
$form = new Form($this);
        
        
$button = new Button($form);
        
$button->setValue("Validate")->onClick("onClickButton");
        
        
$form->setContent($button);
        
$this->render $form;
    }
    
    public function 
onClickButton($sender) {
        
$this->addObject(new JavaScript("alert('click');"));
    }
}
?>


Retourner aux tutoriels du composants Button


Share

 


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