summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket220.page
diff options
context:
space:
mode:
authorwei <>2006-07-05 04:23:43 +0000
committerwei <>2006-07-05 04:23:43 +0000
commit8d8b6688cbbb1febe92012ccc2a4158fa594fcb3 (patch)
treea9f5d43ea3a6efa4a6590192e4ae7f08655310bb /tests/FunctionalTests/tickets/protected/pages/Ticket220.page
parent91c4292a8063dd2d7a27e7629c015faa4bf052d6 (diff)
Fixed #223 #225
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages/Ticket220.page')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket220.page30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket220.page b/tests/FunctionalTests/tickets/protected/pages/Ticket220.page
new file mode 100644
index 00000000..d5b6e182
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket220.page
@@ -0,0 +1,30 @@
+<com:TContent ID="Content">
+ <h1>ClientScript Test</h1>
+
+ <com:TClientScript ScriptUrl=<%~ test.js %>>
+ if(typeof(ClientScriptInfo) == "undefined")
+ ClientScriptInfo = [];
+ ClientScriptInfo.push("ok 3?")
+ </com:TClientScript>
+
+ <com:TClientScript>
+ if(typeof(ClientScriptInfo) == "undefined")
+ ClientScriptInfo = [];
+ ClientScriptInfo.push("ok 2!")
+ </com:TClientScript>
+
+ <com:TLabel ID="label1" Text="Label 1" />
+ <input type="button" id="button1" value="update" />
+
+ <com:TClientScript UsingPradoScripts="prado">
+ Event.observe("button1", "click", function()
+ {
+ element = $("<%= $this->label1->ClientID %>");
+ if(element)
+ element.innerHTML = "Label 1: "+inspect(ClientScriptInfo);
+ else
+ alert("failed");
+ });
+ </com:TClientScript>
+
+</com:TContent> \ No newline at end of file