summaryrefslogtreecommitdiff
path: root/demos/controls/protected
diff options
context:
space:
mode:
authorwei <>2005-12-13 07:08:30 +0000
committerwei <>2005-12-13 07:08:30 +0000
commit35c7ff28cbc311fba5e394b11fb756a4dc1edcb9 (patch)
tree1ee39944b4cdba1ecc6aeb2a952139b5a3165f67 /demos/controls/protected
parent2c383b6050b3d8cc6ac7a9442c999cb903af43ab (diff)
Removed inline javascript from components. Adding TJavascriptLogger and logger.js
Diffstat (limited to 'demos/controls/protected')
-rw-r--r--demos/controls/protected/pages/HomePage.tpl60
1 files changed, 50 insertions, 10 deletions
diff --git a/demos/controls/protected/pages/HomePage.tpl b/demos/controls/protected/pages/HomePage.tpl
index 76c24e39..ea5a182c 100644
--- a/demos/controls/protected/pages/HomePage.tpl
+++ b/demos/controls/protected/pages/HomePage.tpl
@@ -4,17 +4,57 @@
<div>
<com:THiddenField Value="test" />
<h1>Welcome! <%=$this->User->Name %></h1>
+
+<com:TJavascriptLogger />
+
<com:TLiteral Text="<literal>" Encode="true"/>
-<com:TTextBox ID="TextBox" Text="textbox" AutoPostBack="true" CausesValidation="false" />
-<com:TLabel Text="test" AssociatedControlID="checkbox"/><br/>
-<com:System.Web.UI.WebControls.TButton text="Toggle Button" ForeColor="red" Font.size="18" Click="testClick" /> (requires membership)<br/>
-<com:TCheckBox Text="Checkbox" ID="checkbox" AutoPostBack="true" /><br/>
-<com:TRadioButton Text="Radiobutton" ID="radiobutton" AutoPostBack="true" /><br/>
-<com:TImage ImageUrl=<%~/fungii_logo.gif %> />
-<com:TImageButton ImageUrl=<%~/fungii_logo.gif %> Click="clickImage"/><br/>
-<com:THyperLink Text="Visit a 'classless' page" NavigateUrl="?sp=page.plain" /> |
-<com:THyperLink Text="Visit member only page" NavigateUrl="?sp=page.private.member" />
-<com:TLinkButton Text="Click Me" Click="linkClicked" OnClientClick="javascript:alert('you hit me')"/>
+
+<com:TTextBox
+ ID="TextBox"
+ Text="textbox"
+ AutoPostBack="true"
+ CausesValidation="false" />
+
+<com:TLabel
+ Text="test"
+ AssociatedControlID="checkbox" /><br/>
+
+<com:System.Web.UI.WebControls.TButton
+ text="Toggle Button"
+ ForeColor="red"
+ Font.size="18"
+ Click="testClick" /> (requires membership)<br/>
+
+<com:TCheckBox
+ Text="Checkbox"
+ ID="checkbox"
+ AutoPostBack="true" /><br/>
+
+<com:TRadioButton
+ Text="Radiobutton"
+ ID="radiobutton"
+ AutoPostBack="true" /><br/>
+
+<com:TImage
+ ImageUrl=<%~/fungii_logo.gif %> />
+
+<com:TImageButton
+ ImageUrl=<%~/fungii_logo.gif %>
+ Click="clickImage"/><br/>
+
+<com:THyperLink
+ Text="Visit a 'classless' page"
+ NavigateUrl="?sp=page.plain" /> |
+
+<com:THyperLink
+ Text="Visit member only page"
+ NavigateUrl="?sp=page.private.member" />
+
+<com:TLinkButton
+ Text="Click Me"
+ Click="linkClicked"
+ onclick="javascript:alert('you hit me')"/>
+
</div>
</com:TForm>
</com:TContent> \ No newline at end of file