aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/resources/template_error.html
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2015-09-01 13:19:20 +0200
committerfschneider <florian.schneider@student.tugraz.at>2015-09-01 13:28:49 +0200
commit49e49e58f97d16f3cd185f46f5ba1817c44b98b2 (patch)
tree9f0b2d0571bbee9cd25032f80e3f0ec3b9be4f95 /pdf-as-web/src/main/resources/template_error.html
parentae7594d7ade2ebcf56a5ea4d6fe3800d88563288 (diff)
downloadpdf-as-4-49e49e58f97d16f3cd185f46f5ba1817c44b98b2.tar.gz
pdf-as-4-49e49e58f97d16f3cd185f46f5ba1817c44b98b2.tar.bz2
pdf-as-4-49e49e58f97d16f3cd185f46f5ba1817c44b98b2.zip
send post message to parent in result page
Conflicts: pdf-as-web/src/main/resources/template_provide.html
Diffstat (limited to 'pdf-as-web/src/main/resources/template_error.html')
-rw-r--r--pdf-as-web/src/main/resources/template_error.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/pdf-as-web/src/main/resources/template_error.html b/pdf-as-web/src/main/resources/template_error.html
index 0371c568..87992c42 100644
--- a/pdf-as-web/src/main/resources/template_error.html
+++ b/pdf-as-web/src/main/resources/template_error.html
@@ -7,5 +7,21 @@
Error Page:
<p>##ERROR_MESSAGE##</p>
<p>##ERROR_STACK##</p>
+<script type="text/javascript">
+ try {
+ var data = {
+ pdfas: {
+ error: true,
+ msg: "##ERROR_MESSAGE##"
+ }
+ }
+
+ parent.postMessage(data, '##PUBLICURL##');
+ } catch(error) {
+ if(window.console) {
+ window.console.log("Sending message failed!", error);
+ }
+ }
+</script>
</body>
</html>