@AbsoluteUrl (JavaScript)

Generates a prefix for a URL for a Domino® resource.

Defined in

@Functions (Extension Library)

Syntax

@AbsoluteUrl(name:string) : string
Table 1. Parameters
Parameter Description
name:string Name of a Domino® resource.
Table 2. Return value
Attribute Description
string Absolute URL formed by prefixing protocol and server information.

Usage

For example, the absolute URL for foo.nsf in the Domino® data directory of myserver.ibm.com is http://myserver.ibm.com/foo.nsf. For a local preview, the absolute preview is http://localhost/foo.nsf. For Notes, the absolute URL is notes:///foo.nsf.

Use @FullUrl as the parameter to ensure that you provide the full name of the resource.

Examples

This computed field returns the absolute URL for the current database.
return @AbsoluteUrl(database.getFileName())
This computed field returns the absolute URL for a resource in the current database, ensuring that the path to the resource is fully defined.
return @AbsoluteUrl(@FullUrl("blink.gif"))