Functions:
| QueryIP() | |
|---|---|
| Explanation | |
| returns the IP address of the connecting browser | |
| Return values | |
| String IP address, i.e. "192.168.0.5" |
| QueryParam( param ) | |
|---|---|
| Parameters: | |
| Name | Type |
| param | String |
| Explanation | |
| Query's the accessed URL for any embedded parameters. (see your favorite HTML docs for parameter embedding! :) ) | |
| Example: http://pol.server.com:8080/querytest.ecl?par=wibble&name= | |
QueryParam( "par" ) ---> "wibble" QueryParam( "name" ) --> "" QueryParam( "heat" ) --> 0 [integer] | |
| Return values | |
| String value of the embedded param, or 0 if not found. | |
| Errors | |
| "Invalid parameter type" | |
| WriteHtml( html ) | |
|---|---|
| Parameters: | |
| Name | Type |
| html | String |
| Explanation | |
| Writes a line of HTML to the "virtual webpage" that will be sent to the connecting browser and appends a new-line. | |
| Return values | |
| 1 always | |
| Errors | |
| "Socket is disconnected" | |
| "Invalid parameter type" | |
| WriteHtmlRaw( html ) | |
|---|---|
| Parameters: | |
| Name | Type |
| html | String |
| Explanation | |
| Writes a line of HTML to the "virtual webpage" that will be sent to the connecting browser, does NOT append a new-line. | |
| Return values | |
| 1 always | |
| Errors | |
| "Socket is disconnected" | |
| "Invalid parameter type" | |