FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WEBDEV 2024
→
How DO I Get FULL URL in browser window
How DO I Get FULL URL in browser window
Débuté par Tony Turner, 20 nov. 2014 16:09 - 3 réponses
Connectez-vous…
Tony Turner
#1
Posté le 20 novembre 2014 - 16:09
HI
I want to get the FULL URL in the browser when the page is opened.
using:
Trace(PageAddress(search, paFULL))
http://www.mywebsite.com/search.awp
I want to get whats after the query string as well so I want this returned:
I want this including query string.
http://www.mywebsite.com/search.awp
? id=5&id1=8&coulor=red&glic=kjwnkdjwkjnknkn
Anyway to get the query string also....
Thanks
Tony
Signaler
0
0
Fabrice Harari
#2
Posté le 20 novembre 2014 - 21:56
Hi Tony
from the top of my head, this is done by asking for the Query_string
environment variable value (sysxxx function)...
Best regards
--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting
NEW: WXReplication, your open source replication system is available on
my web site!!!
WXShowroom.com: Show your projects!
More information on
http://www.fabriceharari.com
On 11/20/2014 10:09 AM, Tony Turner wrote:
HI
I want to get the FULL URL in the browser when the page is opened.
using:
Trace(PageAddress(search, paFULL))
http://www.mywebsite.com/search.awp
I want to get whats after the query string as well so I want this returned:
I want this including query string.
http://www.mywebsite.com/search.awp
?
id=5&id1=8&coulor=red&glic=kjwnkdjwkjnknkn
Anyway to get the query string also....
Thanks
Tony
Signaler
0
0
Tony Turner
#3
Posté le 24 novembre 2014 - 19:34
Hi Fabrice,
Thanks you saved me so much time.
s
Environment
=
SysEnvironment
(
"HTTP_REFERER"
)
FOR EACH
STRING
s
Myval OF
s
Environment SEPARATED
by
"&"
IF
StringCount
(
s
Myval
,
"q="
,
IgnoreCase
) =
1
THEN
IF
Length
(
s
Myval
) >
2
THEN
s
Mykeyword
=
Replace
(
Replace
(
ExtractString
(
URLDecode
(
s
Myval
)
,
1
,
"q="
,
FromEnd
)
,
"+"
,
"
"
,
IgnoreCase
)
,
"%"
,
" "
,
IgnoreCase
)
END
END
END
A bit rough that but that's the concept.
.... and of course thanks to PCSoft this software is just so good and getting better with every release!
It's like two Xmas's in one every year with the new edition being available soon (v20), French edition will be wizzing it's way to the UK soon in a couple of weeks.
kind regards
Tony
Signaler
0
0
AadG
#4
Posté le 23 janvier 2020 - 11:22
Hi Tony,
I read your posting about extracting the URL from the browser.
I tried HTTP_REFERER, but it has no value.
Did you manage to get the result you wanted ?
Best regards,
Aad
Signaler
0
0
→ Revenir à WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte