FoxInCloud
wNavigate() and URL without the final slash
Gravatar is a globally recognized avatar based on your email address. wNavigate() and URL without the final slash
  Gilles Lajot-Sarthou
  All
  Jan 31, 2017 @ 10:44am

Hi Tierry,

We must append a slash at the end of the URL, to be open by the browse with the wNavigate().. But in this case, the HTML form in the page open by the URL doesn't work correctly. If i dont append the end slash, wNavigate() do not open the URL.

The URL is : http://www.chronopost.fr/retourenligneV2/toDemande.do?codeProduit=01&clientID=CAL&poids=1&codePoint=SAV&envoiEtiquetteParMail=N&typeColis=MAR&refDest=LABORATOIRE%20CAL

How can i do to insert this url link in a menu or in a form ?

Amicalement Gilles

Gravatar is a globally recognized avatar based on your email address. re: wNavigate() and URL without the final slash
  FoxInCloud Support - Thierry N.
  Gilles Lajot-Sarthou
  Jan 31, 2017 @ 10:56am

Gilles,

I mentioned this limitation in my first reply

Next version will fix that; here is the fix:

modify command awServer

PROCEDURE Navigate as Boolean

* replace

	IF .F.;
	 OR InList(m.tcURL, '.', '..');
	 OR Right(m.tcURL, 1) == '/'; && {fr} suppose que les répertoires virtuels ont un document par défaut

* by


	IF .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://';

Gravatar is a globally recognized avatar based on your email address. re: wNavigate() and URL without the final slash
  Gilles Lajot-Sarthou
  FoxInCloud Support - Thierry N.
  Jan 31, 2017 @ 10:32pm

Bonjour Thierry,

It's Ok with this fix!

Amicalement Gilles

© 1996-2024