September 2000
Intermediate to advanced
608 pages
12h 59m
English
The URL library contains functions used in URL manipulation.
Description: Replaces special characters contained in a string with hexadecimal equivalents.
Syntax: URL.escapeString(string)
Example: The following example escapes a URL query string:
// Escape query string var=qs=URL.escapeString(qs); // Append to url url=url+"?"+qs;
Description: Returns the absolute URL path of the current WMLS file.
Syntax: URL.getBase()
Example: The following example displays the URL of the script file being executed:
// Display file being executed
dialogs.Alert("Executing "+URL.getBase());
Description: Returns the fragment (bookmark) portion of a URL. getFragment() supports both absolute and relative URLs.
Syntax: ...
Read now
Unlock full access