app_repsonse.in revision 4d3acf4ec42bf6e838f9060103aff98fbf170794
1{{header}}
2{{object 1 0}} <<
3  /Type /Catalog
4  /Pages 2 0 R
5  /OpenAction 10 0 R
6>>
7endobj
8{{object 2 0}} <<
9  /Type /Pages
10  /Count 1
11  /Kids [
12    3 0 R
13  ]
14>>
15endobj
16% Page number 0.
17{{object 3 0}} <<
18  /Type /Page
19  /Parent 2 0 R
20  /Resources <<
21    /Font <</F1 15 0 R>>
22  >>
23  /Contents [21 0 R]
24  /MediaBox [0 0 612 792]
25>>
26% OpenAction action
27{{object 10 0}} <<
28  /Type /Action
29  /S /JavaScript
30  /JS 11 0 R
31>>
32endobj
33% JS program to exexute
34{{object 11 0}} <<
35>>
36stream
37var result;
38try {
39  result = app.response("question");
40  app.alert("result: " + result);
41  result = app.response("question", "title", "default", true, "label");
42  app.alert("result: " + result);
43  result = app.response({"cQuestion": "question"});
44  app.alert("result: " + result);
45  result = app.response({
46    "cQuestion": "question",
47    "cTitle": "title",
48    "cDefault": "default",
49    "bPassword": true,
50    "cLabel": "label"
51  });
52  app.alert("result: " + result);
53} catch (e) {
54  app.alert("unexpected error " + e);
55}
56try {
57  app.response();
58  app.alert("unexpected success");
59} catch (e) {
60  app.alert("Caught expected error " + e);
61}
62try {
63  app.response({});
64  app.alert("unexpected success");
65} catch (e) {
66  app.alert("Caught expected error " + e);
67}
68endstream
69endobj
70{{xref}}
71trailer <<
72  /Root 1 0 R
73>>
74{{startxref}}
75%%EOF
76