Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Limit browser version
#1
Hi,

I'm building an app that requires the latest versions of browsers to be used. I found that IW support for the browser can be very forgiving, e.g., the app has to use Firefox v110 or newer, but IW can accept as old as 65.

Is there a way to limit the browser support?

I tried IWServerControllerBaseBrowserCheck to get the browser version, but I could not terminate the session as this event

Code:
procedure TIWServerController.IWServerControllerBaseBrowserCheck(
  aSession: TIWApplication; var rBrowser: TBrowser);
  var MinVersion: single;
  const _BrowserMinFirefox = 110;
        _sTerminateMin = ' min version is ';
begin
  if (rBrowser.BrowserName = 'Firefox') and (rBrowser.Version < _BrowserMinFirefox) then
    WebApplication.Terminate(rBrowser.BrowserName+_sTerminateMin+IntToStr(_BrowserMinFirefox)); //<-- Error here
end;



Thank you
Reply


Messages In This Thread
Limit browser version - by mhammady - 11-17-2023, 04:38 PM
RE: Limit browser version - by Alexandre Machado - 11-21-2023, 05:47 AM
RE: Limit browser version - by Alexandre Machado - 11-21-2023, 05:59 AM
RE: Limit browser version - by Lorbass - 11-23-2023, 09:54 AM
RE: Limit browser version - by Alexandre Machado - 11-21-2023, 06:05 AM
RE: Limit browser version - by mhammady - 11-21-2023, 12:25 PM
RE: Limit browser version - by Alexandre Machado - 11-22-2023, 06:34 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)