blob: a81581bf3c26380c25efc48e3cc22d3870eb6274 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
<%
/*** Reg stuff ***/
libinclude("base.js");
page_header("desktop", "Virtual Desktop Design Test", "desktop");
%>
<script type="text/javascript" src="/scripting/client/encoder.js"></script>
<script type="text/javascript" src="/scripting/client/call.js"></script>
<script type="text/javascript" src="/scripting/client/regedit.js"></script>
<script type="text/javascript">
/*** init the page for qooxdoo ***/
window.application.main = function()
{
// Don't declare local with var
doc = this.getClientWindow().getClientDocument();
}
function showReg()
{
var regedit = regedit_widget("ncalrpc:");
doc.add(regedit);
regedit.startup();
}
function startSwat()
{
// Don't declare local with var (for now)
w1 = new QxWindow("Welcome to SWAT.");
w1.setSpace(100, 100, 100, 100);
doc.add(w1);
var btn1 = new QxButton("View Registry");
btn1.set({ top: 20, left : 30 });
btn1.addEventListener("click", showReg)
w1.add(btn1);
w1.setVisible(true);
}
</script>
<div id="canvas" style="overflow:hidden;position:static;margin-top:38px;margin-left:10px;margin-right:700px;width:700px"></div>
<div id="toolbar">
<h3><a href="javascript:startSwat()">SWAT (Start)</a></h3>
</div>
<% page_footer(); %>
|