BARIX Streaming Client Guía de instalación Pagina 31

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 63
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 30
Examples
The following example shows how to implement a form field for the configuration
value of the highest byte in the 'own IP address'.
The input element name is a defined string, which has to be handled with care. The
type character B stands for an unsigned value. 0 is the address of the expected
configuration parameter . The value is a dynamic mark. The string
onChange=IPCheck(this)will call the Javascript util.js to check if the value
entered is in the range of 0 to 255.
<input name=B0 size=3 maxlength=3 value=&LSetup(1,"%u",0);
onChange=IPCheck(this)>
In the next example the name selects the configuration parameter “DHCP Host
Name”.
<input name=S98 size=15 maxlength=15 value="&LSetup(4,"%s",98);">
This example shows how to implement a form field for the configuration of the
Netmask. The names for the bytes of the Netmask are N8B0, N8B1, N8B2 and
N8B3. 8 is the address of the Netmask in the configuration memory. The value
after the B is the byte number of the byte in the Netmask starting with 0 for the
first byte at the left. This special handling for Netmask is needed because the
Netmask is stored in one byte and not like the IP address in 4 bytes. The string
onChange=netMaskCheck(this)will call the Javascript util.js to check if the
value entered is in the correct range.
<input name=N8B0 size=3 maxlength=3 value=&LSetup(2,"%u",8,0);
onChange=netMaskCheck(this)>
The next example shows how to implement a form field for the configuration of the
parameter “Volume” as a selection. If the value of the configuration parameter is
equal to the second last parameter in the dynamic mark it will be replaced by the
last parameter of the dynamic mark.
<select size=1 name=B244>
<option value=0 &Lsetup(3,"%s",244,B,0,"selected");>0</option
<option value=1 &Lsetup(3,"%s",244,B,1,"selected");>5</option>
......
<option value=19
&Lsetup(3,"%s",244,B,19,"selected");>95</option>
<option value=20
&Lsetup(3,"%s",244,B,20,"selected");>100</option>
</select><font size=2>
This example shows how to implement radio buttons for the configuration
parameter 'Sonic IP'.
The functions of the dynamic marks are equal to the example above.
<input type=radio name=B277b7 value=0&LSetup(3,"%s",277,b7,0,"
checked");>Yes
<input type=radio name=B277b7 value=1&LSetup(3,"%s",277,b7,1,"
checked");>No
To transmit the new configuration data to the device the submit input type of the
form is used.
<input type=submit value=" Apply ">
By pressing the Apply button the new configuration data will be transferred to the
device. It will store the new data to its configuration memory (EEPROM).
After this it sends the answer (see above) to the browser and reboots itself to apply
BARIX AG | 31/63
Vista de pagina 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 62 63

Comentarios a estos manuales

Sin comentarios