The runCommand() function is a bit simpler; this function requires only one argument: the name of the
command file. Any file named must be located in the Dreamweaver MX 2004\Configuration\Commands
folder. The runCommand() function does not return a value but simply executes the specified command.
The dreamweaver.latin1ToNative() and dreamweaver.nativeToLatin1() functions
Dreamweaver provides two functions to help with the localization of your behaviors around the globe.
Many countries use font encodings other than Latin 1, which is standard in the United States and several
Western European countries. To convert a string of text for a user interface from Latin 1 encoding to that of
the user??™s machine, use the latin1ToNative() function. The argument, a text string, should be already
translated into the other language. To convert a text string from the user??™s encoding system to Latin 1, use
the inverse function, nativeToLatin1().
Neither of these functions has an effect in Windows systems, which are already based on
Latin 1.
The dreamweaver.relativeToAbsoluteURL() function
As more programs such as Fireworks and Director are capable of outputting HTML, behaviors and other
extensions are being employed to access their documents. It??™s often necessary to find the absolute URL of a
selected file in order to get the document??™s DOM or open it.
Pages:
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945