buildLink
buildLink(nextPage: Class): String;
The buildLink method of the JadeHTMLClass class generates a hyperlink for the HTML page. The URL is built up by using the secure page setting, user settings for the machine name and virtual directory, and the session id. If the value of the nextPage parameter is not null, another parameter (using the value of the goToPage property) is generated, which sets up the next page to be displayed on the web browser.
The code fragment in the following example shows the use of the buildLink method.
buildLink(Customer); // Customer is a subclass of JadeHTMLClass class
This example returns the following.
http:/wilbur1a/jade/jadehttp.dll?WebApp &_jadeReferenceClass=Menu &_jadeReferenceDocument=MenuPage &_session=123456789abcdef &_goToPage=Customer
The returned values in this example are listed in the following table.
Value | Description |
---|---|
wilbur1a | Machine name |
jade | Virtual directory |
WebApp | Application name (session information) |
_jadeReferenceClass | Menu is |
_jadeReferenceDocument | MenuPage, which is the corresponding HTML document (session information) |
_session | Session identifier (session information) |
_goToPage (optional) | Page that is returned when this link is clicked |
See also the Application class setWebMachineName and setWebVirtualDirectory methods.