From 0aa43d9231eedd14310317f54660edeeee303183 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 7 Aug 2005 06:22:08 +0000 Subject: r9175: simplify the example code a bit (This used to be commit fbae29686644198351bb31c3be1cf5630165ef1f) --- swat/esptest/qooxdoo.esp | 25 +++++++------------------ 1 file 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; %> @@ -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; -- cgit