From 0ccf3763474a18b72b6a166399fc1cf569b867f8 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sat, 23 Sep 2006 00:05:08 +0000 Subject: Fixed #389 and add OnPreDispatch for TCallbackClientSide --- .../pages/ActiveControls/ActiveHyperLink.page | 15 +++++ .../protected/pages/ActiveControls/Home.page | 2 +- .../Samples/TActiveHyperLink/Home.page | 70 +++++++++++++++++++++ .../Samples/TActiveHyperLink/Home.php | 26 ++++++++ .../Samples/TActiveHyperLink/hello_world.gif | Bin 0 -> 1602 bytes 5 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 demos/quickstart/protected/pages/ActiveControls/ActiveHyperLink.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.php create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/hello_world.gif (limited to 'demos/quickstart') diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveHyperLink.page b/demos/quickstart/protected/pages/ActiveControls/ActiveHyperLink.page new file mode 100644 index 00000000..e8298ee1 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActiveHyperLink.page @@ -0,0 +1,15 @@ + + +

TActiveHyperLink

+ + +

+The active control counterpart of THyperLink +component. During a callback request, changes to the Text, ImageUrl, +NavigateUrl and Target properties on the server side will also +change the corresponding attributes and content on the client-side. +

+ + + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Home.page b/demos/quickstart/protected/pages/ActiveControls/Home.page index eabb62c9..38fee25d 100644 --- a/demos/quickstart/protected/pages/ActiveControls/Home.page +++ b/demos/quickstart/protected/pages/ActiveControls/Home.page @@ -37,7 +37,7 @@ TActiveButton control.

  • - * TActiveHyperLink + TActiveHyperLink represents a hyperlink on a Web page.
  • diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.page new file mode 100644 index 00000000..9a314493 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.page @@ -0,0 +1,70 @@ + + +

    TActiveHyperLink Samples

    + + + + + + + + + + + + + + + + + + + +
    +A regular hyperlink: + +Welcome to +. + + +
    +A text hyperlink with css style: + +Welcome to +. + + +
    +An image hyperlink: + + + Text="Hello World" />. + + +
    +A hyerplink with body contents as link text: + + +Body contents + + + +
    + +
    \ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.php new file mode 100644 index 00000000..c125d902 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.php @@ -0,0 +1,26 @@ +link1->NavigateUrl = 'http://www.google.com'; + } + + function button2_clicked($sender, $param) + { + $this->link2->Target = '_self'; + } + + function button3_clicked($sender, $param) + { + $this->link3->Text = 'PradoSoft.com'; + } + + function button4_clicked($sender, $param) + { + $img = $this->publishFilePath(dirname(__FILE__).'/hello_world.gif'); + $this->link4->ImageUrl = $img; + } +} +?> \ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/hello_world.gif b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/hello_world.gif new file mode 100644 index 00000000..bc81443c Binary files /dev/null and b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/hello_world.gif differ -- cgit v1.2.3