- SOCKET$ This register will show how many TCP/IP sockets are currently in use.
- CLIENT$ This register and the next 3 will show the 4 numbers representing the IP address of the last TCP/IP connection made.
- have the .htm or .html extension
- reside in the directory specified as the Host Directory.
A pair of NAME and VALUE define the RTES command to be executed. Examples : (1) Start/stop:
(2) Set to a numeric value:
(3) Select value - Radio button style:
(4) Select value - Menu style:
(5) Assign a text to a variable:
Password Authorization Protocol On startup, RTES32 looks for a register named PAP$.
When that Register is set to 1, a user id and password are requested to access the html documents via the web browser. The user id must match the text at Register PAP$ and the password must match the text at the next Register. If you change these texts, you must click "Run Configuration" under "Communications" on the menu bar for the change to take effect. Using DHTML RTES32 (and RTES) support a set of commands that allow the exchange of dynamic data with a web page where the variables are accessible via DOM, using Javascript. DOM stands for Document Object Model and allows access to every entity on a web page. All browsers support DOM. All it takes is a mechanism that retrieves the appropriate data from the server and assigns it to the element it belongs to. We supply a javascript named liveweb.js that allows you to easily use these techniques without any knowledge of scripting. All you have to do is follow these guidelines that we will apply to an example.
- (1) Assign an id to each field you want to make dynamic.
The variable name may be used as id, since it follows the same rules (unique and starts with a letter). If you are using the same variable more than once in the same frame, then you could append _1, _2, to differentiate the id's so that the values go to the specific places. You may assign an id inside any HTML tag such as <td ,<div, <img, <a etc.
If the element does not have a tag, then you would create a generic <span - (2) The data request will be sent to the server as an array named myVars.
Make a list that assigns the variable definitions we need to get from the server
the element of the array.
Notice that the @@ and @ are replaced by " and there is a semi-colon at the end of the line - (3) The data will be received from the server in an array names newData.
Make a list that assigns the new data received to the respective id's.
inner.HTML is a property of the element defined by the id. Other properties my be used as we will see further on in the samples provided.
Note the semi-colon at the end of each line. - (4) Include the 2 lists you wrote between the <head> and </head> HTML tags of your document. Add the "body" tags and include the "onload" in the opening tag.
- (5) Add the following lines just above the 2 lists.
- (8) Copy liveweb.js to your webhost folder(directory).
The updateinterval is expressed in milliseconds. You may adjust it if you wish.