diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-08-07 06:22:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:31:28 -0500 |
commit | 0aa43d9231eedd14310317f54660edeeee303183 (patch) | |
tree | 83088bf65156e7a500a00f60ddf926607c82e549 /swat | |
parent | 0c15c024118debc4e87908ed8d23c314f38f28ed (diff) | |
download | samba-0aa43d9231eedd14310317f54660edeeee303183.tar.gz samba-0aa43d9231eedd14310317f54660edeeee303183.tar.xz samba-0aa43d9231eedd14310317f54660edeeee303183.zip |
r9175: simplify the example code a bit
(This used to be commit fbae29686644198351bb31c3be1cf5630165ef1f)
Diffstat (limited to 'swat')
-rw-r--r-- | swat/esptest/qooxdoo.esp | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/swat/esptest/qooxdoo.esp b/swat/esptest/qooxdoo.esp index f98fe01bd4..dbdb4ddc7a 100644 --- a/swat/esptest/qooxdoo.esp +++ b/swat/esptest/qooxdoo.esp @@ -1,9 +1,5 @@ <% page_header("columns", "ESP qooxdoo test", "esptest"); - - libinclude("encoder.js"); - - var thispage = request.REQUEST_URI; %> <script type="text/javascript" src="/scripting/client/encoder.js"></script> @@ -35,17 +31,6 @@ var d = this.getClientWindow().getDocument(); - function myCheckBox(label, name, value) { - var w = new QxCheckBox(label, value, name, value); - w.setWidth("100%"); - return w; - } - - function myTextField(name, value) { - var w = new QxTextField(value); - return w; - } - var stopit = 0; var shared = new Object(); @@ -84,15 +69,19 @@ function myButton(name, label, call) { var b = new QxButton(label); b.setWidth("25%"); - b.setVerticalAlign("top"); - b.name = name; b.addEventListener("click", call); return b; }; + function myCheckBox(label, name, value) { + var w = new QxCheckBox(label, value, name, value); + w.setWidth("100%"); + return w; + } + var c1 = myCheckBox("Enable The Server", 'checkbox1', false); var c2 = myCheckBox("Another Server", 'checkbox2', true); - var t3 = myTextField("mytext", "hello"); + var t3 = new QxTextField("hello"); var b1 = myButton("send", "Make Call", start_call); var b2 = myButton("stop", "Stop Call", stop_call); var ta = new QxTextArea; |