PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → One question about WebDev
One question about WebDev
Débuté par Lasse Sandström, 15 déc. 2013 00:14 - 1 réponse
Posté le 15 décembre 2013 - 00:14
Are it possible to read browser address bar in expression ?

Or are it possbile to send key command 'ctrl-L' in website to mark this address line
and then copy it 'ctrl'c' to expression ?

I need these info as I need this return data to accept payments in mt system.

And I'm usin WebDev 17 , I have also WinDev 17 and WinDev Mobile 17.

Lasse S
programmer in Finland
Membre enregistré
8 messages
Posté le 16 décembre 2013 - 19:02
You want to stay away from using shortcuts such as Ctrl+L and Ctrl+C, since that would be reaching outside of the browser into the OS.
Though it might be able to be done through JavaScript.

As for your problem with trying to get the URL of the page, use PageAddress.
You can use
CurrentPage is string = PageAddress("",paFULL)
on the server to get the entire URL of the current page, though I recommend the paSECURE option if you are using it inside of a payment system.