diff options
Diffstat (limited to 'webapp/jsp/null_request_page.jsp')
-rw-r--r-- | webapp/jsp/null_request_page.jsp | 43 |
1 files changed, 41 insertions, 2 deletions
diff --git a/webapp/jsp/null_request_page.jsp b/webapp/jsp/null_request_page.jsp index 60e35a9..7bb3541 100644 --- a/webapp/jsp/null_request_page.jsp +++ b/webapp/jsp/null_request_page.jsp @@ -9,6 +9,45 @@ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>PDF-AS Amtssignaturen Lokale Verbindung</title>
<link rel="stylesheet" type="text/css" href="/pdf-as/css/styles.css" />
+
+<script type="text/javascript">
+
+var req;
+
+function init() {
+
+ if (window.XMLHttpRequest) { req = new XMLHttpRequest(); }
+ else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); }
+
+ var url = "<%= local_request_url %>";
+ var formdata = "XMLRequest=<?xml version='1.0' encoding='UTF-8'?><NullOperationRequest xmlns='http://www.buergerkarte.at/namespaces/securitylayer/1.2#'/>";
+ formdata += "&DataURL=<%= data_url %>";
+
+ req.open("post", url, true);
+ req.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
+ req.onreadystatechange = processXMLResponse;
+ req.send(formdata);
+}
+
+function processXMLResponse() {
+ try
+ {
+ //readyState of 4 or 'complete' represents
+ //that data has been returned
+ if (xmlHttp.readyState == 4 ||
+ xmlHttp.readyState == 'complete')
+ {
+ var response = req.responseText;
+ alert(response);
+ }
+ else
+ alert("not ok");
+ }
+ catch(e){}
+}
+
+</script>
+
</head>
<body onload="document.submitform.submit()">
@@ -41,7 +80,7 @@ </div>
-<a class="big" href="/pdf-as/">zurück</a>
+<a class="big" href="/pdf-as/">zurück</a>
</div>
</body>
-</html>
+</html>
\ No newline at end of file |