From d1e09e2e6f9db62bbab84abb53e23ee73764178a Mon Sep 17 00:00:00 2001 From: Derrell Lipman Date: Sun, 31 Dec 2006 20:12:12 +0000 Subject: r20446: rename swat directory to swat.obsolete; keeping it around since there is lots of useful info in it. (This used to be commit 5f9f72a9cfab80561b23284001b67c4ea961757b) --- swat.obsolete/esptest/qooxdoo.esp | 133 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 swat.obsolete/esptest/qooxdoo.esp (limited to 'swat.obsolete/esptest/qooxdoo.esp') diff --git a/swat.obsolete/esptest/qooxdoo.esp b/swat.obsolete/esptest/qooxdoo.esp new file mode 100644 index 0000000000..554a4e90d5 --- /dev/null +++ b/swat.obsolete/esptest/qooxdoo.esp @@ -0,0 +1,133 @@ +<% +/******************************/ +/* server side AJAJ functions */ +libinclude("server_call.js"); + +/* this is a call that the client js code can make - it just adds + some more elements to the passed object, then returns the object */ +function testfunc(x) { + var sys = sys_init(); + x.nttime = sys.nttime(); + x.timestring = sys.httptime(x.nttime); + return x; +} + +/* register a call for clients to make */ +var call = servCallObj(); +call.add('testfunc', testfunc); + +/* run the function that was asked for */ +call.run(); + + /***********************/ + /* now the main page */ + page_header("columns", "ESP qooxdoo test", "esptest"); +%> + + + + +

Samba4 qooxdoo test

+ + + + +
+ +<% page_footer(); %> -- cgit