<?phpclass Button05 extends Page { private $text = null; public function InitializeComponent() { parent::$PAGE_TITLE = "Tutorial : Button with input text in form, callback method on click in AJAX"; $form = new Form($this); $this->text = new TextBox($form); $this->text->setValue("Enter your text"); $this->text->setStripTags("<b><i>"); $button = new Button($form); $button->setValue("Validate")->onClick("onClickButton"); $button->setAjaxEvent(); $form_obj = new WSPObject($this->text, "<br/>", $button); $form->setContent($form_obj); $this->render = $form; } public function onClickButton($sender) { $dialog = new DialogBox("onClickButton", $this->text->getValue()); $this->addObject($dialog); }}?>