diff options
author | wei <> | 2006-07-05 01:43:07 +0000 |
---|---|---|
committer | wei <> | 2006-07-05 01:43:07 +0000 |
commit | 91c4292a8063dd2d7a27e7629c015faa4bf052d6 (patch) | |
tree | 5c102f497f409e2f5deab2a41b07fdea9e7b84c5 /tests/FunctionalTests/features/protected | |
parent | a957f5fb091962c05738d619ebc65a908aa397ca (diff) |
Upate TClientScript
Diffstat (limited to 'tests/FunctionalTests/features/protected')
-rw-r--r-- | tests/FunctionalTests/features/protected/pages/ClientScripTest.page | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/FunctionalTests/features/protected/pages/ClientScripTest.page b/tests/FunctionalTests/features/protected/pages/ClientScripTest.page index 8dbf7133..d5b6e182 100644 --- a/tests/FunctionalTests/features/protected/pages/ClientScripTest.page +++ b/tests/FunctionalTests/features/protected/pages/ClientScripTest.page @@ -1,13 +1,13 @@ <com:TContent ID="Content"> <h1>ClientScript Test</h1> - <com:TClientScript ScriptUrl=<%~ test.js %> ScriptPosition="Head"> + <com:TClientScript ScriptUrl=<%~ test.js %>> if(typeof(ClientScriptInfo) == "undefined") ClientScriptInfo = []; ClientScriptInfo.push("ok 3?") </com:TClientScript> - <com:TClientScript ScriptPosition="Begin"> + <com:TClientScript> if(typeof(ClientScriptInfo) == "undefined") ClientScriptInfo = []; ClientScriptInfo.push("ok 2!") @@ -16,12 +16,12 @@ <com:TLabel ID="label1" Text="Label 1" /> <input type="button" id="button1" value="update" /> - <com:TClientScript ScriptPosition="End" UsingPradoScripts="prado"> + <com:TClientScript UsingPradoScripts="prado"> Event.observe("button1", "click", function() { element = $("<%= $this->label1->ClientID %>"); if(element) - element.innerHTML = inspect(ClientScriptInfo); + element.innerHTML = "Label 1: "+inspect(ClientScriptInfo); else alert("failed"); }); |