cgilink(
DATABASE
,
SUFFIX
,
CAPTION
)
The cgilink( function creates a domain independent URL for another CGI action on the same server.
Parameters
This function has three parameters:
database – name of the database for the target URL. If “” then this is another procedure in the current database.
suffix – the rest of the URL, in other words, everything after the first ~.
caption – the caption for the URL. This is the text that the user will see on their web browser.
Description
This function is designed to be used in a CGI routine to create a domain independent URL for another CGI action on the same server. In other words, the link will continue to work even if the server’s domain (or IP address) changes, or if the database is copied to a different server. The end result is a complete <a>
tag that can be inserted into the HTML being generated by the current CGI procedure.
cgilink("Catalog","Entry Form~Item=F7A","Edit Record")
☞ <a href="http://site.com/cgi-bin/Panorama.cgi?Catalog~Entry%20Form~Item=F7A">Edit Record</a>
See Also
- cgilinknewwindow( -- creates a domain independent link for another CGI action on the same server that opens a new browser window.
- cginavlink( -- creates a domain-independent navigation link for the current record in this database.
- cginavlinknewwindow( -- creates a domain-independent navigation link (to a new browser window) for the current record in this database.
- encodeurlfragment( -- encodes text so that it can be used in the fragment portion of a URL (the portion after the # symbol).
- encodeurlhost( -- encodes text so that it can be used in the host portion of a URL (for example www.host.com).
- encodeurlpassword( -- encodes text so that it can be used in the password portion of a URL.
- encodeurlpath( -- encodes text so that it can be used in the path portion of a URL (the portion after the host name, but before any ? symbol).
- encodeurlquery( -- encodes text so that it can be used in the query portion of a URL (the portion after the ? symbol).
- encodeurluser( -- encodes text so that it can be used in the user name portion of a URL.
- htmldecode( -- converts HTML text into regular text by converting any special HTML entities (`&`, `©`, etc.) into the corresponding characters.
- htmlencode( -- converts standard text into HTML text by converting any special characters into the equivalent HTML entities.
- urldecode( -- decodes text that contains percent encoded characters.
- urlencode( -- converts text into a legal URL (by converting spaces into `%20`). WARNING: THIS FUNCTION IS OBSOLETE.
- webformlink( -- generates a link to a Panorama form on the current web site (the link will open in a new browser window).
- webformlinknewwindow( -- generates a link to a Panorama form on the current web site.
- weblink( -- builds an HTML link tag
- weblinknewwindow( -- builds an HTML link tag
History
10.0 | No Change | Carried over from Panorama 6.0 |