summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket220.page
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages/Ticket220.page')
-rwxr-xr-xtests/FunctionalTests/tickets/protected/pages/Ticket220.page18
1 files changed, 7 insertions, 11 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket220.page b/tests/FunctionalTests/tickets/protected/pages/Ticket220.page
index e4c8fa95..fec54092 100755
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket220.page
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket220.page
@@ -1,30 +1,26 @@
<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 PradoScripts="prado">
- Event.observe("button1", "click", function()
+ $('#button1').click(function()
{
- element = $("<%= $this->label1->ClientID %>");
- if(element)
- element.innerHTML = "Label 1: "+inspect(ClientScriptInfo);
- else
- alert("failed");
+ $("#<%= $this->label1->ClientID %>").html('Label 1: ' + ClientScriptInfo.join('; '));
});
</com:TClientScript>
-
+
</com:TContent> \ No newline at end of file