June 2000 Yehuda Shiran, Ph.D. Doc JavaScript WMLScript is a compiled language and uses Compilation Units and Pragmas . A certain application may include separate scripts that were individually and independently compiled. A compilation unit can call functions that are defined in another compilation unit. WMLScript uses the access control pragma to specify the access control of the WMLScript deck.
Every compilation unit can have only one access control pragma.
The access control pragma specify which URLs can call the external functions in the access-controlled compilation unit. A URL consists of a domain name and a path. The referring compilation unit's domain name is matched with the access domain specification, while the compilation unit's path is matched with the access path specification. The domain matching is guided by two principles. First, they are suffix matched, i.e. matching is done from right to left.