1
<% page_header("columns", "ESP Exception test", "esptest");
2
include("/scripting/forms.js");
5
<h1>Samba4 exception test</h1>
9
var f = FormObj("ExceptionTest", 0, 2);
10
f.submit[0] = "Generate Exception";
11
f.submit[1] = "No Exception";
15
if (request['REQUEST_METHOD'] == "POST") {
16
function TestFunction(arg1, arg2) {
20
if (form['submit'] == "Generate Exception") {
21
write("I expect you to die Mr Bond!<br>\n");
24
write("no exception<br>\n");
25
TestFunction("foo", "bar");
30
and here is some filler text ...