Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

Need help getting javascript to work with cfdocument

$
0
0

I have an action page that opens after a form submit as a popup by using the 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 page as it is common 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 5794

Trending Articles



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