ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Web-specific functions / Page functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Allows you to find out the Internet address of a page.
  • WEBDEV - Server codePHP Returns the address of a WEBDEV page.
  • WEBDEV - Browser code Returns the address of the current page.
Example
WEBDEV - Server codeAjax
Trace(PageAddress(PAGE_COORDINATE))
// Displays for example: 
// /WD290AWP/WD290AWP.EXE/CTX_2420-0-FCFOVjoyom/COORDINATES/SYNC_12564
WEBDEV - Server codeAjax
Trace(PageAddress(PAGE_COORDINATE, paFull))
// Displays for example: 
// http://www.windev.com/WD290AWP/WD290AWP.EXE/CTX_2420-0-FCFOVjoyom/COORDINATES/SYNC_12564
WEBDEV - Browser code
Trace(PageAddress())
// Displays for example:
// /WD290AWP/WD290AWP.EXE/CTX_358-0-NhDrnmZtoc/Page1/SYNC_16069977
WEBDEV - Server codeAjax
// Generate a link that runs the click code
// of a button whose name is a variable
ButtonName is string = "BTN_BUTTON1"
HTM_HTMLControl.Value = "<A HREF=" + PageAddress() + ...
"?" + ButtonName + ">Click here</A>"
WEBDEV - Server codeAjax
// Initialization code of a link used to
// open a page via a secure link
ContextOpen(PAGE_SecurePage)
MySelf.Value = PageAddress(PAGE_SecurePage, pdSecure) + "?WD_ACTION_=REFRESH")
Syntax
WEBDEV - Server codePHPAjax

Retrieving the address of a page Hide the details

<Result> = PageAddress([<Page> [, <Option>]])
<Result>: ANSI character string
Address of the specified page or empty string ("") if:
  • the page does not exist in the project
  • the page context is not opened (ContextOpen).
<Page>: Page name
Name of the page whose address must be returned.
If this parameter is not specified or if it corresponds to an empty string (""), the name of the page corresponds to the name of the current page.
<Option>: Optional constant
Type of address to return:
pdFullFull address of the page (HTTP address).
pdFullAutoFull address of the page with the protocol used (HTTP or HTTPS).
pdRelative
(Default value)
Address relative to the current domain.
pdSecureFull address of the page, secured by SSL (HTTPS address).
WEBDEV - Browser code

Retrieving the address of the current page Hide the details

<Result> = PageAddress()
<Result>: Unicode string
Full address of the current page.
Business / UI classification: UI Code
Component: wd290page.dll
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 10/26/2023

Send a report | Local help