All, Any one have any CF ideas?
I've got this page that installs an ActiveX control. That's not the problem. It installs fine, then after the install, part of the Javascript redirects the page. The redirect has to be in the Javascript. So this install page performs a task that I don't want people to be able to hit the back button and perform the task twice. Here's what I've tried so far ... 1) META HTTP-EQUIV="Pragma-directive" CONTENT="no-cache" META HTTP-EQUIV="cache-directive" CONTENT="no-cache" 2) cfheader name=Expires value=Mon, 06 Jan 1990 00:00:01 GMT cfheader name=Pragma value=no-cache cfheader name=cache-control value=no-cache 3) Set the expiration on the IIS side: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/0fc16fe7-be45-4033-a5aa-d7fda3c993ff.mspx?mfr=true 4) I tried redirecting from the Javascript to other multiple cfm pages before getting to a final response page to add more pages in between entries in the browser histroy list, but these multiple pages don't register in the browser histroy. So no matter how many pages I redirect through, the page I don't want people to to back to is always there when they hit the back button. 5) I tried the JavScript trick of trying to fool the browser and go forward instead of backwards and that does work. It works in a page that redirects without JavaScript though. Argh! Any thoughts or suggestions would be great. Thanks D Code Samples: <script language="JavaScript" > function checkInstalled(){ if(factory.printing != null){ factory.printing.PrintHTML("global_files/displaycoupon.cfm?ID=" + <CFOUTPUT>#ID#</CFOUTPUT>); alert("The coupon has been sent to your printer. Please note the expiration date on the printed coupon."); document.location.href="http://www.homepage.com"; } else { setTimeout('checkInstalled()', 1000); } } </script> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287381 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4