diff options
author | xue <> | 2006-04-16 03:54:42 +0000 |
---|---|---|
committer | xue <> | 2006-04-16 03:54:42 +0000 |
commit | fc38326ea80e73717fb1d187a16421f7bc1b1b04 (patch) | |
tree | 3af80b19880ebe572778300b10217e056eb9d2ae /demos/quickstart/protected/pages/Fundamentals | |
parent | 70944795827cffd1bd5a27a9c4a99eb1434f905f (diff) |
Merge from 3.0 branch till 918.
Diffstat (limited to 'demos/quickstart/protected/pages/Fundamentals')
-rw-r--r-- | demos/quickstart/protected/pages/Fundamentals/HelloWorld.page | 31 | ||||
-rw-r--r-- | demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.page | 6 | ||||
-rw-r--r-- | demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.php | 11 | ||||
-rw-r--r-- | demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.gif | bin | 5557 -> 0 bytes | |||
-rw-r--r-- | demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.vsd | bin | 143360 -> 0 bytes |
5 files changed, 0 insertions, 48 deletions
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 @@ -<com:TContent ID="body" >
-<h1>Sample: Hello World</h1>
-<p>
-"Hello World" perhaps is the simplest <i>interactive</i> PRADO application that you can build. It displays to end-users a page with a submit button whose caption is <i>Click Me</i>. When the user clicks on the button, the button changes the caption to <i>Hello World</i>.
-</p>
-<p>
-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 <i>onclick</i> event.
-</p>
-<p>
-PRADO promotes component-based and event-driven Web programming. The button is represented by a <i>TButton</i> object. It encapsulates the button caption as the <i>Text</i> property and associates the user button click action with a server-side <i>Click</i> event. Therefore, the "Hello World" task can be handled intuitively and easily. One simply needs to attach a function to the button's <i>Click</i> event. Within the function, the button's <i>Text</i> property is modified as "Hello World". The following diagram shows the above sequence,
-</p>
-<img src="<%~Samples/HelloWorld/sequence.gif%>" />
-<p>
-The code that a developer needs to write is merely the following event handler function, where <tt>$sender</tt> refers to the button object.
-<com:TTextHighlighter CssClass="source">
-public function buttonClicked($sender,$param)
-{
- $sender->Text = "Hello World";
-}
-</com:TTextHighlighter>
-</p>
-<p>
-The following line in the page template attaches the <tt>buttonClicked()</tt> method to the <tt>OnClick</tt> event of the button,
-</p>
-<com:TTextHighlighter Language="prado" CssClass="source">
-<com:TButton Text="Click Me" OnClick="buttonClicked" />
-</com:TTextHighlighter>
-
-<com:RunBar PagePath="Fundamentals.Samples.HelloWorld.Home" />
-
-</com:TContent>
\ 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" %>
-<com:TContent ID="body">
-
-<com:TButton Text="Click Me" OnClick="buttonClicked" />
-
-</com:TContent>
\ 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 @@ -<?php
-
-class Home extends TPage
-{
- public function buttonClicked($sender,$param)
- {
- $sender->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 Binary files differdeleted file mode 100644 index a1e51200..00000000 --- a/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.gif +++ /dev/null diff --git a/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.vsd b/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.vsd Binary files differdeleted file mode 100644 index e8c2f5a7..00000000 --- a/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.vsd +++ /dev/null |