|
|
I'm not sure if this should be a form question, a cfcontent question or a flash
question, so I apologize if this is not the proper place to post.
Here is the situation:
I have a flash form with a cfselect with
onchange=getURL('viewFile.cfm?requestedFile=someFileLocation','_blank')
the viewFile.cfm page is:
<cfif Right(requestedFile,3) IS "xls" OR Right(requestedFile,3) IS "XLS">
<cfheader name="Content-Disposition" value="inline; filename=Report.xls">
<cfcontent type="application/vnd.ms-excel"
file="\\myServer\myFolder\#requestedFile#">
</cfif>
#requestedFile# is encrypted and decrypted before and after passing the value,
but I left that out for simplicity.
The result is:
Action Canceled
Internet Explorer was unable to link to the Web page you requested. The page
might be temporarily unavailable.
If I hit F5 or click reload, the XLS document will open (after Open, Save or
Cancel Dialog Box).
Any other file type seems to work fine, it is only .xls that is giving me
trouble.
If I create the same form as an HTML form using onchange=window.open etc.
the document opens as requested (again, after dialog box)
However, I need to use the Flash Form.
Has anyone experienced this before?
Thanks.
|
|