FoxInCloud
wNavigate
Gravatar is a globally recognized avatar based on your email address. wNavigate
  Vincent H.
  All
  Oct 25, 2020 @ 02:42am

Hi Thierry,

I don't understand why this code is not working.
Something wrong ?

LOCAL oServer as xxxServer of xxxServer, oConfig as xxxAppConfig of xxxServer
wlWeb(@m.oServer, @m.oConfig)
COPY FILE (Mdocvisu) TO ADDBS (m.oConfig.cTempPathPhysical) + "Bible.html"
wNavigate(m.oConfig.cTempPathVirtual + "Bible.html" + "?xxx=" + SYS (2015), .T.)

I get a blank page

Gravatar is a globally recognized avatar based on your email address. re: wNavigate
  FoxInCloud Support - Thierry N.
  Vincent H.
  Oct 25, 2020 @ 04:26am

Hi Vincent

What URL do you get in the browser nav bar?

Gravatar is a globally recognized avatar based on your email address. re: wNavigate
  Vincent H.
  FoxInCloud Support - Thierry N.
  Oct 25, 2020 @ 04:32am

Thank you for your quick reply (a sunday) !

about: blank

The file was successfully copied to the temporary folder

Gravatar is a globally recognized avatar based on your email address. re: wNavigate
  Tore Bleken
  Vincent H.
  Oct 25, 2020 @ 04:41am

Seems like you miss a parenthesis

COPY FILE (Mdocvisu) TO (ADDBS (m.oConfig.cTempPathPhysical) + "Bible.html")
Gravatar is a globally recognized avatar based on your email address. re: wNavigate
  Vincent H.
  Tore Bleken
  Oct 25, 2020 @ 05:51am

Thanks Tore, but normally both work

Gravatar is a globally recognized avatar based on your email address. re: wNavigate
  FoxInCloud Support - Thierry N.
  Vincent H.
  Oct 25, 2020 @ 07:05am

What does wNavigate() return? .T. or .F.?

If .F., you should have an assert message in dev.; if not, set a break point before wNavigate() and step through the code to find out what goes wrong.

Gravatar is a globally recognized avatar based on your email address. re: wNavigate
  Vincent H.
  FoxInCloud Support - Thierry N.
  Oct 25, 2020 @ 08:28am

This returns .F.
But I found it !
It works without the extension "?xxx=" + SYS (2015)

Gravatar is a globally recognized avatar based on your email address. re: wNavigate
  Vincent H.
  Vincent H.
  Oct 25, 2020 @ 09:59am

It works:

... "?xxx=" + SYS (2015) + "/"

Gravatar is a globally recognized avatar based on your email address. re: wNavigate
  Vincent H.
  Vincent H.
  Oct 26, 2020 @ 07:06am

But I am unable to launch this URL (which launches without problem in the address bar):

file:///z:/Vente%20d'un%20immeuble%20b%C3%A2ti%20-%20sno_5uf0ppxck[VI].odt

With or without slash at the end. About:blank

Any idea ?

Gravatar is a globally recognized avatar based on your email address. re: wNavigate
  FoxInCloud Support - Thierry N.
  Vincent H.
  Oct 26, 2020 @ 02:06pm

JavaScript can’t load a resource located on another domain

See stack overflow

© 1996-2024