I used the following code to download a pdf file
(download.cfm) but the current page becomes blank. I want it to
change to another page (view.cfm) using self.location but without
success
view.cfm
<cfdirectory
directory="/var/www/html/"
action="list"
filter="*.pdf"
name="fax">
<cfoutput query="fax">
<a
href="download.cfm?filename=#fax.name#">#fax.name#</a><br>
</cfoutput>
download.cfm
<cfheader name="Content-Disposition" value="inline;
filename=#url.filename#">
<cfcontent type="application/pdf"
file="/var/www/html/#url.filename#">
<script>
self.location="view.cfm";
</script>
pls kindly advise.