TGWALocation
The TGWALocation type defines a record for a Genero wrapper around the
JavaScript window.location object.
Syntax
PUBLIC TYPE TGWALocation RECORD
href STRING
protocol STRING
host STRING
hostname STRING
port INTEGER
pathname STRING
search STRING
hash STRING
origin STRING
approot STRING
END RECORD
- The
hrefstring holds the entire URL. For example, https://myserver.org:6394/gwa/gwa_dist?test=true#bang - The
protocolstring holds the protocol scheme of the URL, including the final colon (":"). For example, "HTTP:" or "HTTPS:". - The
hoststring holds the host, that is the hostname, a colon (":"), and the port of the URL. For example, myserver.org:6394 - The
hostnamestring holds the domain of the URL. For example, myserver.org. - The
portstring holds the the port number of the URL. - The
pathnamestring holds the initial slash ('/') followed by the path of the URL, but not including the query string or fragment. For example, /gwa/gwa_dist - The
searchstring holds a question mark ("?") followed by the parameters or "query string" of the URL. For example, ?test=true - The
hashstring holds a hash or pound sign ("#") followed by the fragment identifier of the URL. For example, #bang - The
originstring holds the canonical form of the origin of the specific location. - The
approotholds the web server path where the GWA application was started. For example, if the application was launched at https://myserver.org:6394/gwa/gwa_dist/index.html, theapprootvalue is https://myserver.org:6394/gwa/gwa_dist.
Usage
It provides an API to inspect a location URL of an application window. A variable of the type
TGWALocation must be defined.
For more information, refer to the HTML DOM API location (external link) documentation.