<input type="hidden" id="downloadFlag" name="downloadFlag" value="0">
variables.downloadFlag = form.downloadFlag;
<cfif (variables.downloadFlag eq "1")>
<cfscript>
variables.d_srx = CreateObject('component','mycfcpage');
variables.d_success = variables.d_srx.download_files(variables.q_data);
</cfscript>
document.getElementById('downloadFlag').value = 0;
</cfif>
that executes the download function on a CFC page if the value of the flag="1". What I need to do after the function has executed is re-set the value of the flag back to 0. That's what I try to do on the line:document.getElementById('downloadFlag').value = 0;
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.