Using XML
The TCPnet Web server supports the Ajax technology. The idea behind is to move the page processing from the Web Server to a local computer. Java Script processes the web page on a local computer and generates a web page updates.
The benefits of using XML technology for web page update are obvious:
- instead of several files, only one small XML file is transferred for web page update,
- this allows faster, flicker-free screen updates,
- the used LAN bandwith is very small,
- the web server can easily handle more clients at the same time.
The components of XML file are tagged. You must use this format for generated XML responses. The object ID's and their values must be specified within XML body - enclosed with tags <form> and </form>.
The following objects are defined:
- Text object
<text>
<id>text_id</id>
<value>text_value</value>
</text>
- Checkbox object
<checkbox>
<id>checkbox_id</id>
<checked>true/false</checked>
</checkbox>
- Select object
<select>
<id>option_id</id>
<value>true/false</value>
</select>
- Radio object
<radio>
<id>radio_id</id>
<value>true/false</value>
</radio>
The other http objects are optional. You can add them yourself.