From 4f15d896ab3af600d28a6e75b0240d49d8e023f1 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 16 Apr 2006 03:42:50 +0000 Subject: Rewrote Hello World tutorial. --- demos/quickstart/protected/controls/TopicList.tpl | 4 +-- .../protected/pages/Fundamentals/HelloWorld.page | 31 --------------------- .../Fundamentals/Samples/HelloWorld/Home.page | 6 ---- .../pages/Fundamentals/Samples/HelloWorld/Home.php | 11 -------- .../Fundamentals/Samples/HelloWorld/sequence.gif | Bin 5557 -> 0 bytes .../Fundamentals/Samples/HelloWorld/sequence.vsd | Bin 143360 -> 0 bytes 6 files changed, 2 insertions(+), 50 deletions(-) delete mode 100644 demos/quickstart/protected/pages/Fundamentals/HelloWorld.page delete mode 100644 demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.page delete mode 100644 demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.php delete mode 100644 demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.gif delete mode 100644 demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.vsd (limited to 'demos') diff --git a/demos/quickstart/protected/controls/TopicList.tpl b/demos/quickstart/protected/controls/TopicList.tpl index 254d67ad..d2cde711 100644 --- a/demos/quickstart/protected/controls/TopicList.tpl +++ b/demos/quickstart/protected/controls/TopicList.tpl @@ -6,7 +6,8 @@
  • Introduction
  • What is PRADO?
  • Installation
  • -
  • Upgrading from Earlier Versions
  • +
  • Creating First PRADO Application
  • +
  • Upgrading from v2.x and v1.x
  • @@ -20,7 +21,6 @@
  • Modules
  • Services
  • Applications
  • -
  • Sample: Hello World
  • Sample: Hangman Game
  • diff --git a/demos/quickstart/protected/pages/Fundamentals/HelloWorld.page b/demos/quickstart/protected/pages/Fundamentals/HelloWorld.page deleted file mode 100644 index 572c6766..00000000 --- a/demos/quickstart/protected/pages/Fundamentals/HelloWorld.page +++ /dev/null @@ -1,31 +0,0 @@ - -

    Sample: Hello World

    -

    -"Hello World" perhaps is the simplest interactive PRADO application that you can build. It displays to end-users a page with a submit button whose caption is Click Me. When the user clicks on the button, the button changes the caption to Hello World. -

    -

    -There are many approaches that can achieve the above goal. One can submit the page to the server, examine the POST variable, and generate a new page with the button caption updated. Or one can simply use JavaScript to update the button caption upon its onclick event. -

    -

    -PRADO promotes component-based and event-driven Web programming. The button is represented by a TButton object. It encapsulates the button caption as the Text property and associates the user button click action with a server-side Click event. Therefore, the "Hello World" task can be handled intuitively and easily. One simply needs to attach a function to the button's Click event. Within the function, the button's Text property is modified as "Hello World". The following diagram shows the above sequence, -

    - -

    -The code that a developer needs to write is merely the following event handler function, where $sender refers to the button object. - -public function buttonClicked($sender,$param) -{ - $sender->Text = "Hello World"; -} - -

    -

    -The following line in the page template attaches the buttonClicked() method to the OnClick event of the button, -

    - -<com:TButton Text="Click Me" OnClick="buttonClicked" /> - - - - -
    \ No newline at end of file diff --git a/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.page b/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.page deleted file mode 100644 index 60c7c3e2..00000000 --- a/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.page +++ /dev/null @@ -1,6 +0,0 @@ -<%@ Title="Hello World" %> - - - - - \ No newline at end of file diff --git a/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.php b/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.php deleted file mode 100644 index b1a7f991..00000000 --- a/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.php +++ /dev/null @@ -1,11 +0,0 @@ -Text="Hello World"; - } -} - -?> \ No newline at end of file diff --git a/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.gif b/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.gif deleted file mode 100644 index a1e51200..00000000 Binary files a/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.gif and /dev/null differ diff --git a/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.vsd b/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.vsd deleted file mode 100644 index e8c2f5a7..00000000 Binary files a/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.vsd and /dev/null differ -- cgit v1.2.3