diff options
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected')
3 files changed, 8 insertions, 8 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActivePanelTest.page b/tests/FunctionalTests/active-controls/protected/pages/ActivePanelTest.page index 2ba1c6ba..5eadcb77 100755 --- a/tests/FunctionalTests/active-controls/protected/pages/ActivePanelTest.page +++ b/tests/FunctionalTests/active-controls/protected/pages/ActivePanelTest.page @@ -9,13 +9,13 @@ <div id="div1" style="border:1px solid #666; background-color: #ffe; text-align: center; padding:3em"> Click Me! </div> - <script type="text/javascript"> + <com:TClientScript> Event.OnLoad(function() { Event.observe($("div1"), "click", function() { Prado.Callback("<%= $this->callback1->UniqueID %>") }) - }) - </script> + }); + </com:TClientScript> </com:TContent> diff --git a/tests/FunctionalTests/active-controls/protected/pages/NestedActiveControls.page b/tests/FunctionalTests/active-controls/protected/pages/NestedActiveControls.page index 2c6304b2..9534f0c0 100755 --- a/tests/FunctionalTests/active-controls/protected/pages/NestedActiveControls.page +++ b/tests/FunctionalTests/active-controls/protected/pages/NestedActiveControls.page @@ -14,7 +14,7 @@ Click Me! </div> <com:TActiveLabel ID="label2" Text="Label 2" /> - <script type="text/javascript"> + <com:TClientScript> Event.OnLoad(function() { Event.observe($("div1"), "click", function() @@ -22,6 +22,6 @@ Prado.Callback("<%= $this->callback1->UniqueID %>") }) }) - </script> + </com:TClientScript> </com:TContent> diff --git a/tests/FunctionalTests/active-controls/protected/pages/PostLoadingTest.page b/tests/FunctionalTests/active-controls/protected/pages/PostLoadingTest.page index 980ea4d8..0a8167c8 100755 --- a/tests/FunctionalTests/active-controls/protected/pages/PostLoadingTest.page +++ b/tests/FunctionalTests/active-controls/protected/pages/PostLoadingTest.page @@ -9,7 +9,7 @@ Click Me!
</div>
- <script type="text/javascript">
+ <com:TClientScript>
Event.OnLoad(function()
{
Event.observe($("div1"), "click", function()
@@ -17,5 +17,5 @@ Prado.Callback("<%= $this->callback1->UniqueID %>")
})
})
- </script>
-</com:TContent>
\ No newline at end of file + </com:TClientScript>
+</com:TContent>
|