![Anybus CompactCom 40 EtherNet/IP Network Manual Download Page 39](http://html1.mh-extra.com/html/anybus/compactcom-40-ethernet-ip/compactcom-40-ethernet-ip_network-manual_2948758039.webp)
Server Side Include (SSI)
39
Doc.Id. HMSI-27-212
Anybus CompactCom 40 EtherNet/IP
Doc.Rev. 1.5
6.3.6 ChangeLanguage()
This command changes the language setting based on an HTML form object.
Note:
This command cannot be used in e-mail messages.
Syntax:
<?--#exec cmd_argument='ChangeLanguage( "
source
" )'-->
source -Name of form object which contains the new language setting.
The passed value must be a single digit as follows:
Default Output:
Example:
The following example demonstrates how to use this function. The resulting page sends a form
to itself, which is then evaluated by the ChangeLanguage() command.
<HTML>
<HEAD><TITLE>ChangeLanguage Test</TITLE></HEAD>
<BODY>
<?--#exec cmd_argument='ChangeLanguage("lang")'-->
<FORM action="test.shtm">
<P>
<LABEL for="lang">Language(0-4): </LABEL><BR>
<INPUT type="text" name="lang"><BR><BR>
<INPUT type="submit" name="_submit">
</P>
</FORM>
</BODY>
</HTML>
Note:
In order for this example to work, the HTML-file must be named ‘test.shtm’.
Form value
Language
“0”
English
“1”
German
“2”
Spanish
“3”
Italian
“4”
French
Scenario
Default Output
Success
“Language changed”
Error
“Failed to change language “