I can't even get a simple JS alert() to work.
Copy link to clipboard
<!--- XLS --->
<!--- XLSX --->
<!--- <cfcontent type="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">--->
These tags result in Coldfusion sending binary content, that is, Excel code, to the browser.
I kind of thought it wouldn't work. So, once the header information is sent and a binary follows, nothing else is executed.
It will start out "Generate Report", then change to "Loading..." when the user clicks on it. I'd like to switch it back to "Generate Report" after the binary either starts or is done streaming.
Thank you, and V/r,
UPDATE: Ben Nadel figured it out. Here's the link for anyone else who might want to do the same.