3 ● For Developers: Administering FactoryTalk Historian ActiveView
71
ConnectionFailed Event
If the connection to the Historian Server fails, this event occurs before the
login dialog box is displayed. This event allows the script to retry the
connection programmatically without showing the login dialog box.
Format
ConnectionFailed (myParam as CFParam)
Examples
The following is an example of using JavaScript to use the security events:
<html>
<head>
<script language = "VBScript">
Sub window_onLoad()
Pbd1.DisplayURL = "<MyDisplayURL>"
End Sub
</script>
<script id = "clientEventHandlersJS" language = "JavaScript">
function Pbd1_ConnectionFailed(pParam) {
alert(pParam.Server);
pParam.UserName = "MyUserName";
pParam.Password = "MyPassword";
}
</script>
<script language = "JavaScript"
for = "Pbd1"
event = "ConnectionFailed(pParam)">
Pbd1_ConnectionFailed(pParam)
</script>
</head>
<body>
<p>
<object id = "Pbd1"
width = "700"
height = "510"
classid = "CLSID:4F26B906-2854-11D1-9597-
00A0C931BFC8">
</object>
Komentarze do niniejszej Instrukcji