blob: 8dbf7133a600944b8302f200816351166450698b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<com:TContent ID="Content">
<h1>ClientScript Test</h1>
<com:TClientScript ScriptUrl=<%~ test.js %> ScriptPosition="Head">
if(typeof(ClientScriptInfo) == "undefined")
ClientScriptInfo = [];
ClientScriptInfo.push("ok 3?")
</com:TClientScript>
<com:TClientScript ScriptPosition="Begin">
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 ScriptPosition="End" UsingPradoScripts="prado">
Event.observe("button1", "click", function()
{
element = $("<%= $this->label1->ClientID %>");
if(element)
element.innerHTML = inspect(ClientScriptInfo);
else
alert("failed");
});
</com:TClientScript>
</com:TContent>
|