diff options
author | fschneider <florian.schneider@student.tugraz.at> | 2015-09-03 17:32:01 +0200 |
---|---|---|
committer | fschneider <florian.schneider@student.tugraz.at> | 2015-09-03 17:32:01 +0200 |
commit | e739c3c7fd02ed8fd73474080b05b8b4096186fc (patch) | |
tree | d31319d002dbe8b3a69dc2d3b036f26ee29a9030 /pdf-as-web/src/main/resources | |
parent | 49e49e58f97d16f3cd185f46f5ba1817c44b98b2 (diff) | |
download | pdf-as-4-e739c3c7fd02ed8fd73474080b05b8b4096186fc.tar.gz pdf-as-4-e739c3c7fd02ed8fd73474080b05b8b4096186fc.tar.bz2 pdf-as-4-e739c3c7fd02ed8fd73474080b05b8b4096186fc.zip |
Preparations for app
Diffstat (limited to 'pdf-as-web/src/main/resources')
-rw-r--r-- | pdf-as-web/src/main/resources/template_error.html | 2 | ||||
-rw-r--r-- | pdf-as-web/src/main/resources/template_provide.html | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/pdf-as-web/src/main/resources/template_error.html b/pdf-as-web/src/main/resources/template_error.html index 87992c42..47ba9c56 100644 --- a/pdf-as-web/src/main/resources/template_error.html +++ b/pdf-as-web/src/main/resources/template_error.html @@ -19,7 +19,7 @@ Error Page: parent.postMessage(data, '##PUBLICURL##'); } catch(error) { if(window.console) { - window.console.log("Sending message failed!", error); + window.console.log("Sending message failed! to parent: " + parent, error); } } </script> diff --git a/pdf-as-web/src/main/resources/template_provide.html b/pdf-as-web/src/main/resources/template_provide.html index 1ff00d15..28b51ed4 100644 --- a/pdf-as-web/src/main/resources/template_provide.html +++ b/pdf-as-web/src/main/resources/template_provide.html @@ -10,11 +10,12 @@ PDF ready @: <a href="##PDFDATAURL##">download here</a> var data = { pdfas: { success: true, - pdfUrl: "Child URL" + pdfUrl: "##PDFDATAURL##" } } - - parent.postMessage(data, '##PUBLICURL##'); + + console.log("sending msg to parent: " + parent); + parent.postMessage(data, '*'); //'##PUBLICURL##'); </script> </body> </html> |