Copy link to clipboard
Copied
Hi,
i have very simple code as i listed below A, B and C, but it didn't work and throw dirrent errors depend on what i have for src, can anyone help please.
Thanks
A
<cfpresentation title="USGS Naming Conventions" directory="#expandPath('.')#/" overwrite="yes">
<cfpresenter name="Amy" title="Developer">
<cfpresentationslide src="#expandPath('.')#/expe16.jpg"
duration="10" presenter="Amy"/>
<cfpresentationslide src="#expandPath('.')#/expe15.jpg"
duration="10" presenter="Amy"/>
</cfpresentation>
An error occurred in creating the presentation. | |
java.io.IOException: The character ' ' is an invalid XML character |
B
<cfpresentation title="USGS Naming Conventions" directory="#expandPath('.')#/" overwrite="yes">
<cfpresenter name="Amy" title="Developer">
<cfpresentationslide src="https://mysever/expe16.jpg"
duration="10" presenter="Amy"/>
<cfpresentationslide src="https://mysever/expe15.jpg"
duration="10" presenter="Amy"/>
</cfpresentation>
got diffrent error: coldfusion.document.DocumentProcessor$RenderException: ERROR encountered loading ....
C: worked fine
<cfpresentation title="USGS Naming Conventions" directory="#expandPath('.')#/" overwrite="yes">
<cfpresenter name="Amy" title="Developer">
<cfpresentationslide src="http://geonames.usgs.gov/foreign/index2.html"
duration="10" presenter="Amy"/>
<cfpresentationslide src="http://geonames.usgs.gov/foreign/index.html"
duration="10" presenter="Amy"/>
</cfpresentation>
Copy link to clipboard
Copied
I've never used <cfpresentation>, so my suggestions might be of limited merit.
In the first example, you're trying to use a JPG as the source. According tot he docs (which should always be your first port of call when troubleshooting issues), the valid types are HTML (be that static of via a CFM), PPT or SWF files. Not JPGs.
<cfpresentationslide>
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-790f.html
In the second example you're hitting a secure site, so the CF server probably needs a certificate installed to be able to browse it.
In the third example... well it works. 'nuff said 😉
--
Adam