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
href
string holds the entire URL. For example, https://myserver.org:6394/gwa/gwa_dist?test=true#bang - The
protocol
string holds the protocol scheme of the URL, including the final colon (":"
). For example, "HTTP:" or "HTTPS:". - The
host
string holds the host, that is the hostname, a colon (":"
), and the port of the URL. For example, myserver.org:6394 - The
hostname
string holds the domain of the URL. For example, myserver.org. - The
port
string holds the the port number of the URL. - The
pathname
string 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
search
string holds a question mark ("?"
) followed by the parameters or "query string" of the URL. For example, ?test=true - The
hash
string holds a hash or pound sign ("#"
) followed by the fragment identifier of the URL. For example, #bang - The
origin
string holds the canonical form of the origin of the specific location. - The
approot
holds 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, theapproot
value 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.