You can use a Uniform Resource Locator (URL) to access a WMLScript 1.1 file. Use a use url pragma to call a function in an external file. For example:
use url OtherScript "http://www.host.com/app/script";
To call an external file, you must specify the following:
The URL of the WMLScript 1.1 resource (http://www.host.com/app/script)
The resource's name (OtherScript)
Then, inside the function declarations, you can use just the resource name. For example:
function test (par1, par2) {
return OtherScript#check (par1-par2);
};
The following occurs in the example function call:
The pragma specifies the URL to the WMLScript 1.1 file.
The function call loads the file by using the given URL.
The file's content is verified and the specified function (check) is executed.
The use url pragma has its own name space for local names. However, the local names must be unique within any given file. WMLScript 1.1 supports URLs and relative URLs without a hash mark (#) or a fragment identifier. For more information, visit:
http://info.internet.isi.edu/in-notes/rfc/files/rfc2396.txt
For relative URLs, the base URL is the URL that identifies the current file.
The specified URL must be escaped according to the URL escaping rules. No compile time automatic escaping, URL syntax, or URL validity checking is performed.