Quantcast
Channel: Adobe Community : All Content - ColdFusion
Viewing all articles
Browse latest Browse all 5979

Javascript will not execute if a cfdocument tag is in a document

$
0
0

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:

 

<script>

        window.opener.document.getElementById('photoListTitle').innerHTML='test update';

</script>

 

Tag Attributes:

<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">

          html...

</cfdocument>


Viewing all articles
Browse latest Browse all 5979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>