LyndonOHRC
Programmer
I have a popup form action page that opens by using the form/target="_blank" attribute.
The new document does a database insert and then creates a PDF using the <cfdocument> tag.
I'm trying update some elements on the parent/opener form page as it is common for the client to continue using the parent, make some changes, and generate another PDF. If I comment out the <cfdocument> tag my code works fine, the parent document is updated as I expected.
I'm not sure how to proceed, help much appreciated!
thanks, Lyndon
Javascript I'm trying to run just before the <cfdocument> tag:
Tag Attributes:
Lyndon
The new document does a database insert and then creates a PDF using the <cfdocument> tag.
I'm trying update some elements on the parent/opener form page as it is common for the client to continue using the parent, make some changes, and generate another PDF. If I comment out the <cfdocument> tag my code works fine, the parent document is updated as I expected.
I'm not sure how to proceed, help much appreciated!
thanks, Lyndon
Javascript I'm trying to run just before the <cfdocument> tag:
Code:
<script>
window.opener.document.getElementById('photoListTitle').innerHTML='test update';
</script>
Tag Attributes:
Code:
<cfdocument
localUrl="yes"
format="PDF"
pageType="custom"
pageWidth="2.2"
pageHeight="3.375"
marginBottom="0"
marginTop="0"
marginLeft="0"
marginRight="0"
orientation="portrait"
backgroundVisible="yes"
fontEmbed ="true"
filename="PDFs/#Replace(BadgPhotoName,'.jpg','.pdf','All')#"
overwrite="true">
some simple html...
</cfdocument>
Lyndon