blob: e4c8fa956d76f720148d51e9d5322d9bd010a616 (
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 %>>
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()
{
element = $("<%= $this->label1->ClientID %>");
if(element)
element.innerHTML = "Label 1: "+inspect(ClientScriptInfo);
else
alert("failed");
});
</com:TClientScript>
</com:TContent>
|