summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/ActiveControls/Samples/TCallbackClientScript/Home.php
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quickstart/protected/pages/ActiveControls/Samples/TCallbackClientScript/Home.php')
-rwxr-xr-xdemos/quickstart/protected/pages/ActiveControls/Samples/TCallbackClientScript/Home.php39
1 files changed, 35 insertions, 4 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TCallbackClientScript/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TCallbackClientScript/Home.php
index eeacb660..4cd655ef 100755
--- a/demos/quickstart/protected/pages/ActiveControls/Samples/TCallbackClientScript/Home.php
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TCallbackClientScript/Home.php
@@ -7,9 +7,6 @@ class Home extends TPage
{
switch($this->radio1->SelectedValue)
{
- case 1:
- $this->getCallbackClient()->evaluateScript("<script> alert('something'); </script>");
- break;
case 2:
$this->getCallbackClient()->check($this->check1, !$this->check1->Checked);
break;
@@ -19,9 +16,43 @@ class Home extends TPage
case 4:
$this->getCallbackClient()->show($this->label1);
break;
- case 5:
+ case 9:
$this->getCallbackClient()->focus($this->txt1);
break;
+ case 10:
+ $this->getCallbackClient()->scrollTo($this->check1, array('duration' => 1000, 'offset' => 10));
+ break;
+ case 11:
+ $this->getCallbackClient()->addCssClass($this->txt1, 'red_background');
+ break;
+ case 12:
+ $this->getCallbackClient()->removeCssClass($this->txt1, 'red_background');
+ break;
+ case 14:
+ $this->getCallbackClient()->setAttribute($this->txt1, 'disabled', true);
+ break;
+ case 15:
+ $this->getCallbackClient()->setStyle($this->pan1, array('background-color' => 'blue'));
+ break;
+ case 16:
+ $this->getCallbackClient()->prependContent($this->pan1, 'prepend<br/>');
+ $this->getCallbackClient()->appendContent($this->pan1, '<br/>append');
+ break;
+ case 17:
+ $this->getCallbackClient()->insertContentBefore($this->pan1, 'before');
+ $this->getCallbackClient()->insertContentAfter($this->pan1, 'after');
+ break;
+ case 18:
+ $this->getCallbackClient()->replaceContent($this->pan1, 'No more Panel 1');
+ break;
+ case 19:
+ $this->getCallbackClient()->remove($this->txt1);
+ break;
+ case 22:
+ $this->getCallbackClient()->click($this->pan1);
+ // alternative
+ // $this->getCallbackClient()->raiseClientEvent($this->pan1, 'click');
+ break;
}
}
}