ClientLog - cBaseLocalControlHost
Displays a diagnostic string on the client's JavaScript debugging console
Type: Procedure
Parameters
| Parameter | Type | Description |
|---|---|---|
| sText | String | Text to display |
Syntax
Procedure ClientLog String sText
Call Example
Send ClientLog sText
Description
ClientLog shows the provided text on the console of a JavaScript debugger (such as FireBug). This is a common debugging method in web applications comparable to Showln in Windows applications.
The text is prefixed with the "Server: " string to identify the displayed string as a server-side log.
Sample
Object oButton is a cWebButton
Procedure OnClick
Send ClientLog to ghoWebApp "This button was clicked!"
End_Procedure
End_Object
In the above example the text "Server: This button was clicked!" would be displayed in the browser's JavaScript debugger console panel each time the button is clicked.