Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Back Button control
#1
I have recently upgraded from IW12 to 15 in Delphi 2010, and have sadly lost a brilliant piece of functionality - I have the following bit of JavaScript included in the header of each of my pages (using the ExtraHeader property) to prevent people from using the back button

<script type="text/javascript" >
   function preventBack(){window.history.forward();}
    setTimeout("preventBack()", 0);
    window.onunload=function(){null};
</script>


It wasn't *perfect*, as it could be bypassed with sufficient user investment, but it was pretty damned handy, and worked in every browser we tried it with. Unfortunately, after upgrading to IW15, the code is still appearing in the page headers but it doesn't appear to work at all. The built-in replacement from Intraweb (BackButtonOptions,mode = bmInterceptGlobal) sadly doesn't seem to be functional either in Chrome or Edge, although it is at least working in IE.

Does anyone have any idea why the above script would have stopped working between versions?
Reply


Messages In This Thread
Back Button control - by SWTwo6 - 10-11-2019, 05:36 PM
RE: Back Button control - by kudzu - 10-12-2019, 03:38 PM
RE: Back Button control - by SorenJensen - 10-13-2019, 06:44 AM
RE: Back Button control - by kudzu - 10-13-2019, 04:20 PM
RE: Back Button control - by SorenJensen - 10-13-2019, 05:52 PM
RE: Back Button control - by SWTwo6 - 10-14-2019, 11:03 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)