FoxInCloud
Exit without returning to the home page
Gravatar is a globally recognized avatar based on your email address. Exit without returning to the home page
  Vincent H.
  All
  Jun 10, 2022 @ 03:34am

Hi Thierry,

I want a (one-time) user to be able to close the current page, but not return to the app home

wNavigate ("about:blank") does not work in this way

The best would be to close the tab with window.close() but its use is restrictive

There is one solution left: don't include a "Quit" button and save the exit code in release()

What do you think ?

Gravatar is a globally recognized avatar based on your email address. re: Exit without returning to the home page
  FoxInCloud Support - Thierry N.
  Vincent H.
  Jun 16, 2022 @ 02:28am

wNavigate ("about:blank") does not work

Please try this change

modify command awServer

&& replace
case .F.;
 OR InList(m.tcURL, '.', '..');
 OR Right(m.tcURL, 1) == '/'; && {fr} suppose que les répertoires virtuels ont un document par défaut
 OR Leftc(Lower(m.tcURL), Lenc('http://')) == 'http://';
 OR Leftc(Lower(m.tcURL), Lenc('https://')) == 'https://';
 OR InList(Lower(JustExt(m.tcURL)), 'html', 'htm');


&& by
case .F.;
 OR InList(m.tcURL, '.', '..');
 OR Right(m.tcURL, 1) == '/'; && {fr} suppose que les répertoires virtuels ont un document par défaut
 OR Leftc(Lower(m.tcURL), Lenc('http://')) == 'http://';
 OR Leftc(Lower(m.tcURL), Lenc('https://')) == 'https://';
 OR Leftc(Lower(m.tcURL), Lenc('about:')) == 'about:'; && 2022-06-16 thn -- {FiC V 3.0.1-beta.1} {en} added for https://support.west-wind.com/Thread6CR07O77M.wwt#6CR07O77N -- see https://fr.wikipedia.org/wiki/About:
 OR InList(Lower(JustExt(m.tcURL)), 'html', 'htm');
 OR .F.
Gravatar is a globally recognized avatar based on your email address. re: Exit without returning to the home page
  Vincent H.
  Vincent H.
  Jun 16, 2022 @ 04:17am

Thank you Thierry, I will test ...

Gravatar is a globally recognized avatar based on your email address. re: Exit without returning to the home page
  Vincent H.
  Vincent H.
  Jun 16, 2022 @ 10:27am

Thanks Thierry, it works !

© 1996-2022